[Python-bugs-list] [ python-Bugs-813453 ] restrictions in _tkinter
built with threaded tk undocumented
SourceForge.net
noreply at sourceforge.net
Sat Oct 4 04:04:21 EDT 2003
Bugs item #813453, was opened at 2003-09-27 11:08
Message generated for change (Settings changed) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=813453&group_id=5470
Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
>Assigned to: Martin v. Löwis (loewis)
Summary: restrictions in _tkinter built with threaded tk undocumented
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=813453&group_id=5470
More information about the Python-bugs-list
mailing list