py2exe and Tix

F

Federico

How can I freeze a script using Tix with py2exe?

I try with this:

#provatix.py
import Tix
w=Tix.Tk()
Tix.Label(w,text='hallo').grid()
w.mainloop()

#setup.py
from distutils.core import setup
import py2exe
import glob
setup(console=["provatix.py"])

so I have provatix.exe but when I run it I have an error:
Traceback (most recent call last):
File "provatix.py", line 2, in ?
File "Tix.pyc", line 210, in __init__
_tkinter.TclError: can't find package Tix

Where is the error?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top