Message337533
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. |
|
Date |
User |
Action |
Args |
2019-03-08 21:37:09 | terry.reedy | set | recipients:
+ terry.reedy, kbk, pitrou, PythonInTheGrass, serhiy.storchaka |
2019-03-08 21:37:09 | terry.reedy | set | messageid: <1552081029.52.0.486103795801.issue10909@roundup.psfhosted.org> |
2019-03-08 21:37:09 | terry.reedy | link | issue10909 messages |
2019-03-08 21:37:09 | terry.reedy | create | |
|