[Python-Dev] Event loops, PyOS_InputHook, and Tkinter
skip@pobox.com
skip at pobox.com
Mon Nov 14 21:04:02 CET 2005
Michiel> 1) Currently, there's only one PyOS_InputHook. So we're stuck
Michiel> if we find that some other extension module already set
Michiel> PyOS_InputHook. An easy solution would be to have an
Michiel> PyOS_AddInputHook/PyOS_RemoveInputHook API, and let Python
Michiel> maintain a list of input hooks to be called.
I think we've come more-or-less full circle to the point where I jumped onto
this spinning thread. If there is only a single input hook function, you
probably need to write a slightly higher level module that manages the hook.
See sys.exitfunc and the atexit module for a simple example.
Skip
More information about the Python-Dev
mailing list