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 b开发者_如何学Ce highly appreciated.
Thanks in advance.
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.
精彩评论