This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: restrictions in _tkinter built with threaded tk undocumented
Type: enhancement Stage:
Components: Documentation, Tkinter Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: loewis Nosy List: doko, georg.brandl, loewis, terry.reedy
Priority: normal Keywords:

Created on 2003-09-27 09:08 by doko, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Messages (3)
msg18406 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2003-09-27 09:08
Basically, raise some comments from the _tkinter.c
module to the library reference:

   If Tcl is threaded, this approach won't work
anymore. The Tcl interpreter is only valid in the
thread that created it, and all Tk activity must happen
in this thread, also. That means that the mainloop must
be invoked in the thread that created the interpreter.
Invoking commands from other threads is possible;
_tkinter will queue an event for the interpreter
thread, which will then execute the command and pass
back the result. If the main thread is not in the
mainloop, and invoking commands causes an exception; if
the main loop is running but not processing events, the
command invocation will block.
msg109821 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-07-10 06:21
Is this still valid (or has something already been added)?
If so, do you still think it is needed (we seem to have gotten along without it for 7 years)?
If so, will you rewrite the snippet (it starts with with a dangling 'this') and specify where you would put it?

Response with reset this to open.
msg185414 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2013-03-28 10:00
Closing this due to lack of activity.
History
Date User Action Args
2022-04-10 16:11:26adminsetgithub: 39318
2013-03-28 10:00:27georg.brandlsetstatus: pending -> closed
nosy: + georg.brandl
messages: + msg185414

2010-07-10 06:21:08terry.reedysetstatus: open -> pending
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 3.0
nosy: + terry.reedy

messages: + msg109821

resolution: out of date
2009-02-14 12:10:03ajaksu2settype: enhancement
versions: + Python 3.0, - Python 2.5
2008-01-04 00:25:37christian.heimessetcomponents: + Tkinter
versions: + Python 2.6, Python 2.5, - Python 2.3
2003-09-27 09:08:58dokocreate