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

I have since learned the following about accessing tk widgets from non-main 
threads.
1. It seem to be reliable when tcl/tk is compiled with thread support but not 
when tcl/tk is not so compiled. (The latter is contrary to a claim in the doc.)
2. The tcl default is 'without' 8.5 and 'with' for 8.6, and PSF installers 
follow the default.  I am guessing that this is likely true for Linux 
distributions.
3. The 2.7 Windows installer currently includes 8.5.15.  The 3.5+ Windows 
installers include 8.6.z.  Hence the different results on my Windows machine.
4. Mac installers now use 8.6.z even, I believe, for 2.7.  I have the 
impression that the system tcl/tk for current Linux distributes is also 8.6.z.
Hence, the issue of tkinter thread safety is resolving itself.

I reran e10909.py with 2.7.16 with the B config call disabled and it ran until 
I stopped it at 24 minutes.  Printing from a thread is not an issue on my 
machine.

----------

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

Reply via email to