TKINTER glitch on 2.2.2
Burt Leavenworth
edlsoft at mindspring.com
Fri Jan 10 11:07:58 EST 2003
On Fri, 10 Jan 2003 06:09:55 GMT, Howard Lightstone
<howard at eegsoftware.com> wrote:
>edlsoft at mindspring.com (Burt Leavenworth) wrote in
>news:3e1e22e0.12108310 at news1.news.adelphia.net:
>
>>>Burt Leavenworth wrote:
>>>> I am upgrading from 1.5.2 to 2.2.2 but now my GUI applications which
>>>> work on 1.5.2 no longer work properly.
>>>>
>
>> from Tkinter import *
>> import sys
>> win = Tk()
>> button = Button(win, text = 'Goodbye',command = sys.exit)
>> button.pack()
>> mainloop()
>>
>
>>
>> There must be some dumb omission.
>>
>> Burt
>
>The proper way to exit mainloop() cleanly is to call the quit() method.
>
>However, I assume you called this with python.exe. There is a known bug (SF
>#453489 or #216289 ??) with Tk 8.3 and earlier which will cause the task
>to hang forever (you can't kill it since it gets hung in the task
>termination processing). You can use pythonw.exe and get better results
>there.
>
Yes, when I use pythonw.exe it works just fine. Thanks for the info.
Burt
More information about the Python-list
mailing list