Greetings, I just joined the list. I just built Python from source so I could do GUI programming on OS X. When I try to run a very simple Tkinter script from the IDE, it immediately quits, crashes I guess. But it runs OK when I try it from the command line in Terminal. Here is all it is:
from Tkinter import * w = Button( text="Hello", command='exit' ) w.pack() w.mainloop() It's on page 22 of Lutz & Ascher's Learning Python. My guess is that running an event loop from a script disrupts the IDE's event loop. Is that the case? If so, is there a way I can do Tkinter testing from the IDE? I'm sorry if this is a FAQ. If you can direct me to it I'm happy to go read it. Possibly I have a bug in Tk or Tcl. I got a segment violation when running Tcl's "make test". I haven't tried to diagnose it yet. Here are the versions of everything: Mac OS X 10.3.9 Python 2.4.1 tk 8.4.11 tcl 8.4.11 XCode 1.5 XCode update: November 2004 GCC updater gcc version 3.3 20030304 (Apple Computer, Inc. build 1671) ld Apple Computer, Inc. version cctools-525.1.obj~8 This is the first time I've done any Python on the Mac. Previously I've only done it on Linux. Thanks! Michael D. Crawford [EMAIL PROTECTED] Read "GoingWare's Bag of Programming Tricks" at: http://www.goingware.com/tips/ _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig