I wrote the following small program: #----------------------------------------------------------------------- import sys, Tkinter t = Tkinter.Tk() b = Tkinter.Button(command=lambda: sys.exit(0), text="Click to exit") b.pack() t.mainloop() #----------------------------------------------------------------------- and ran it with pythonw.exe from python 2.3.4 on a machine running Windows NT 4.0. (I actually used Start > Run and entered "d:\python23\pythonw.exe x:\app.pyw" rather than clicking on the app.pyw icon, but this shouldn't make a difference)
When the button is clicked, the application exits without giving any error like the one you described. Jeff
pgp2abPBqEct6.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list