Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question

1 Answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.