0
votes

I have tried the steps mentioned at http://wiki.python.org/jython/JythonFaq/DistributingJythonScripts and formed myapp.jar from my python code and my main.py script uses Tkinter for GUI...but when i try to run it :

java -jar myapp.jar main.py it is showing

import Tkinter, tkFileDialog, tkMessageBox, tempfile, shutil ImportError: No module named Tkinter

How to avoid it....Early response will be highly appreciated.

Thanks in advance.

1

1 Answers

4
votes

Tkinter is not included with Jython, and to the best of my knowledge nobody has ported it.

If you need to do a GUI in Jython, you'll probably need to use a Java library like Swing or SWT.