[Python-Dev] Event loops, PyOS_InputHook, and Tkinter
"Martin v. Löwis"
martin at v.loewis.de
Mon Nov 14 08:53:07 CET 2005
Michiel Jan Laurens de Hoon wrote:
>>Yes, you can. Actually, Tkinter *always* runs in a separate thread
>>(separate from all other threads).
> Are you sure? If Tkinter is running in a separate thread, then why does
> it need PyOS_InputHook?
Well, my statement was (somewhat deliberately) misleading. That separate
thread might be the main thread (and, in many cases, is). The main
thread is still a "separate" thread (separate from all others).
More information about the Python-Dev