[Pythonmac-SIG] mac newbie... Tix . What is wrong?

Eric Texier erictexier at sbcglobal.net
Sat May 7 07:15:26 CEST 2005


Here is a simple example that works on linux, but not on MacOSX
tigger.
Thanks
Eric

> pythonw
Python 2.4.1 (#2, Apr 27 2005, 22:11:31) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more
information.
>>> import Tix
>>> 
>>> def selectedFile(inFile):
...    print inFile
... 
>>> root = Tix.Tk()
>>> d = Tix.FileSelectDialog(root,command=selectedFile)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk/Tix.py",
line 815, in __init__
    ['options'], cnf, kw)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk/Tix.py",
line 307, in __init__
    self.tk.call(widgetName, self._w, *extra)
_tkinter.TclError: invalid command name "tix"


Delete Reply Forward Spam Move...

Previous | Next 
<http://us.f816.mail.yahoo.com/ym/ShowLetter?box=Pythonmac&MsgId=3566_20291253_8839_2103_1205_0_14692_3117_3820366915&NEXT=1&inc=&num=&Idx=0&Search=&YY=85165&order=down&sort=date&pos=0&view=a&head=b> 
| Back to Messages 
<http://us.f816.mail.yahoo.com/ym/ShowFolder?box=Pythonmac&YY=85165&order=down&sort=date&pos=0&view=a&head=b> 



More information about the Pythonmac-SIG mailing list