Porting Tkinter application to JYthon

Tim N. van der Leeuw tnleeuw at gmail.com
Tue Nov 28 02:48:44 EST 2006


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
python-list at 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




More information about the Python-list mailing list