I can confirm the same behavior and Google results are not promising:
http://www.thescripts.com/forum/thread653175.html
http://aspn.activestate.com/ASPN/Mail/Message/ActivePython/3525325
I tried installing Tix from the binary TclAqua package, and when I run root=Tix.Tk() I still get the same error (though, interestingly, a Tk window does open). Looks like your best bet right now would be to install Tix via fink if that's an option.
-Jay
You need an up-to-date installation of the base Tix package on your
system, in the same path as your Tcl/Tk libraries. I downloaded and
built the most recent version of Tix from http://tix.sf.net (dated
November 2006) and the Python samples run fine.
I think the problem is that Tix is generally considered obsolete, or at
least very outdated, by Tcl developers, so many distributions do not
include it. It is not shipped with ActiveState on the Mac, nor does
Apple include Tix in the Tcl/Tk libraries bundled with OS X. From my
perspective there are far better, more modern alternatives, such as
BWidgets, TkTreeCtrl, Tablelist, and Tile (all of which have Python
wrappers) to enhance the core Tk widgets. Tix appears to be more widely
used by Python/Tkinter developers than Tcl/Tk developers.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
You need an up-to-date installation of the base Tix package on your
> So I tried to build Tix, and it complains about a tcl header file
> (tclPort.h). My Tcl stuff is in
> /System/Library/Frameworks/Tcl.framework/Versions/8.4/, but the header
> file doesn't exist. I assume I need to download the source for Tcl and
> build that, or is it enough to have the headers from the source of tcl?
> I just don't want to break something that is already there.
>
>
You need the source for both Tcl and Tk, and Tix should be in the same
directory tree.
--Kevin