[Python-bugs-list] [ python-Bugs-453489 ] Using deiconify() hangs on exit
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 20 Aug 2001 13:38:11 -0700
Bugs item #453489, was opened at 2001-08-20 13:38
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=453489&group_id=5470
Category: Tkinter
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Using deiconify() hangs on exit
Initial Comment:
If you run the following script, and iconize the
window before the after() timer, it'll restore and
raise the window as it should, but then you can't
exit. You have to kill winoldap with ctrl+alt+del and
wait.
I ran into this trying to write a portable jabber
client using tkinter.
This is with 2.1.1 on Windows 98. Does it every
time. May be related to bug #216289.
from Tkinter import *
import sys
def foo():
print 'foo'
sys.stdout.flush()
root.deiconify()
print 'bar'
sys.stdout.flush()
root=Tk()
Button(root, text='Quit', command=root.quit).pack()
root.after(5000, foo)
root.mainloop()
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=453489&group_id=5470