Serhiy Storchaka added the comment:

Related Tk issues:

http://core.tcl.tk/tk/tktview/822002ffffffffffffff
http://core.tcl.tk/tk/tktview/732662ffffffffffffff
http://core.tcl.tk/tk/tktview/1844034fffffffffffff
http://core.tcl.tk/tk/tktview/939389ffffffffffffff

The problem should be fixed (at least on Windows) in the last issue, but 
perhaps Tkinter doesn't execute this code.

A workaround is to make a pause about 0.1 sec (can be depend on perfomance of 
your computer, it doesn't work if the pause is too short). Append following 
lines to you example:

r.after(100, r.destroy)
r.mainloop()

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23760>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to