[EMAIL PROTECTED] wrote: > I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua > version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can > run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an > x-term. If I run python and import Tkinter it always grabs the TkAqua > version. How can I get Tkinter to load the TkX11 version? > > I want to be able to switch back and forth between the two at will. > > Thanks > David >
I don't think the version of Python that ships with OS X by default is compatible with the X11 environment. For one thing, it is built with the "-framework" flag, which is how OS X packages libraries--this works differently than on other *Nix environments. The Aqua version of Tcl/Tk is also a framework build, and it's not compatible with the X11 version. (The "wish8.4-x11" command is just a wrapper script that invokes a completely different wish binary, linked against an entirely different set of libraries.) The advice to install Python and Tcl/Tk via Fink (or DarwinPorts) then run your script against that is the right advice. It's a much cleaner way to go. -- Kevin Walzer iReveal: File Search Tool http://www.wordtech-software.com -- http://mail.python.org/mailman/listinfo/python-list