Terry J. Reedy 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
Terry J. Reedy added the comment:
Quoting from msg179101 on #16823, which I turned into a doc issue:
'''
What you are doing appears to be unsupported (invalid). From
http://www.astro.washington.edu/users/rowen/TkinterSummary.html
all Tkinter access must be from the main thread (or more
Serhiy Storchaka added the comment:
Tkinter as perhaps any other GUI library must be used only from one thread.
--
nosy: +serhiy.storchaka, terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6933
Ramchandra Apte added the comment:
Bump.
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6933
___
___
Python-bugs-list
New submission from Moray Grieve m...@progress.com:
The attached file has an example where a Tk GUI is launched as a
seperate thread - this all works fine in Python 2.5, but in Python 2.6
the thread hangs.
The issue seems to be in the line;
self.messageBoxDetails.insert(INSERT, Hello world)
Moray Grieve m...@progress.com added the comment:
I should say this is running on Windows XP
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6933
___