py2exe and Tix

Federico maschio_77 at hotmail.com
Fri Oct 1 18:47:39 EDT 2004


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






More information about the Python-list mailing list