Message316452
| Author |
terry.reedy |
| Recipients |
Ramchandra Apte, moraygrieve, serhiy.storchaka, terry.reedy |
| Date |
2018年05月13日.04:56:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1526187397.54.0.682650639539.issue6933@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I changes the import to theading instead of thread and the start line to
threading.Thread(target=example)
On 3.7 with tcl/tk 8.6 with thread support, I see the gui when mainloop is called in the thread, and then the >>> prompt appears. On 2.7 with tk 8.5 without thread support, I see no hang but only >>>, no box, after the same time delay.
With thread support, thread calls work. Without, success varies, and so do failure modes. See #33479 for proposed doc on tkinter and thread safety. |
|