Terry J. Reedy <tjre...@udel.edu> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue6933> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com