I have two questions.
First, how can I find out what Python modules (and their versions) come with Mac OS-X 10.6.8 Snow Leopard?
Second, what is the deal with Snow Leopard and Tix? I absolutely cannot understand this. If I import Tix, no errors. If I interactively type
>>> help(Tix)
I get megabytes of info on using Tix. If I go any further this happens…
>>> root = Tix.Tk()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tix.py", line 210, in __init__
_tkinter.TclError: can't find package Tix
>>>
Oh, the widow will open but I still get the error. I click the window and notice the menu bar said, “Python”. Under, “File” I see, “Run Widget Demo”. I start it up and every Tix demo runs. When I click the demo’s, “See code” I see it’s all in (what I assume to be) Tcl.
Tcl/Tk is version 8.5x, Tix is installed and I can import it with Python but I can’t use it?
Mac OS X 10.6 comes with Python 2.6.1.
The TKinter version on that platform is Apple 8.5.7 and has known problems; IDLE won’t run with it, for example.
See the IDLE and tkinter with Tcl/Tk on Mac OS X page on Python.org for more details.
Terminal output for
help('modules')on a 10.6 machine:The
pygameandvboxapi(VBoxPython2_5,VBoxPython2_6,vboxapi,vboxshell) packages are non-default add-ons installed later on that machine, the rest should be standard issue.