467,150 Members | 1,248 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,150 developers. It's quick & easy.

Porting Tkinter application to JYthon

Dear All,

We have a Tcl/Tk application written using Python 2.2. Using this application we want to call some customizable Java APIs. I tried porting Tcl/Tk application to Jython but not able to do the same as TKinter library is not available with JYthon.

Can you please help me in porting Tkinter application to Jython? Also kindly let me know how to do the same.
Thanks & Regards,
Sandip Desale
--

Search for products and services at:
http://search.mail.com
Nov 23 '06 #1
  • viewed: 3436
Share:
2 Replies
Hi,

sandip desale wrote:
Dear All,

We have a Tcl/Tk application written using Python 2.2. Using this application we want to call some customizable Java APIs. I tried porting Tcl/Tk application to Jython but not able to do the same as TKinter library is not available with JYthon.

Can you please help me in porting Tkinter application to Jython? Also kindly let me know how to do the same.
Not having Tkinter in Jython, you can either rewrite your app to be a
Java Swing app, or you can embed the Java JVM into the Python
interpreter as an importable library. I believe some projects exist to
enable the latter, although I don't know of a URL.

Cheers,

--Tim
>

Thanks & Regards,
Sandip Desale
--

Search for products and services at:
http://search.mail.com
Nov 23 '06 #2
Hi Sandip,

sandip desale wrote:
Dear All,

We have a Tcl/Tk application written using Python 2.2. Using this application we want to call some customizable Java APIs. I tried porting Tcl/Tk application to Jython but not able to do the same as TKinter library is not available with JYthon.

Can you please help me in porting Tkinter application to Jython? Also kindly let me know how to do the same.
Thanks & Regards,
Sandip Desale
In response to my previous post I got an e-mail suggesting to look at
JPype; however that message wasn't posted to the list, despite a CC: to
py*********@python.org. And it seems that you haven't received the
message either.

Anyways, here's the URL for the JPype project which allows the use of
Java libraries from Python:

http://jpype.sourceforge.net/

I downloaded it for windows and it seems to work quite OK, although I
only did some toy-testing (opening a Swing filechooser window from
within PythonWin, for instance).

The purpose of the project is calling Java code from Python, and it has
some limited facilities to allow callbacks from Java to Python. I think
therefore that it fits very well what you and I would need: integration
of Java libraries into Python projects.

It does not, however, allow subclassing of Java classes in Python or
the other way round, and it does not allow calling of arbitrary Python
code from the JVM.

Cheers,

--Tim

Nov 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by srijit@yahoo.com | last post: by
2 posts views Thread by Lane LiaBraaten | last post: by
reply views Thread by Michele Simionato | last post: by
reply views Thread by Brian Kazian | last post: by
2 posts views Thread by Titi Anggono | last post: by
4 posts views Thread by Chris Travers | last post: by
2 posts views Thread by Andrew Trevorrow | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.