Terry J. Reedy <tjre...@udel.edu> added the comment:

When I closed the main thread by clicking [x], thus destroying root, both event 
threads raised instead of hanging.  So my experiment involved calling 
root.destroy instead of setting running to False.  The better result when 
running under IDLE might be due to IDLE's run process executes 
tcl.call('update') about 20 times per second.  Even if the exception idea could 
be made to work, it seems like a kludge.

Waiting on the event threads from a separate non-gui thread and leaving the 
main thread fully functional and responsive until the gui threads die seems 
much cleaner.  Perhaps this should be recommended as a standard way to shut 
down the main thread when there might be active gui threads.  Thank you for 
following through with this to get a solution we both like.

----------

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

Reply via email to