[Python-Dev] Event loops, PyOS_InputHook, and Tkinter

Noam Raphael noamraph at gmail.com
Sun Nov 13 01:30:37 CET 2005

On 11/13/05, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Noam Raphael wrote:
> > All that is needed to make Tkinter and Michiels'
> > code run together is a way to say "add this callback to the input
> > hook" instead of the current "replace the current input hook with this
> > callback". Then, when the interpreter is idle, it will call all the
> > registered callbacks, one at a time, and everyone would be happy.
> Except for those who don't like busy waiting.
I'm not sure I understand what you meant. If you meant that it will
work slowly - a lot of people (including me) are using Tkinter without
a mainloop from the interactive shell, and don't feel the difference.
It uses exactly the method I described.


More information about the Python-Dev mailing list