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

Phillip J. Eby pje at telecommunity.com
Thu Nov 10 18:55:19 CET 2005


At 01:47 PM 11/10/2005 +0000, Donovan Baarda wrote:
>Twisted is an async-framework that I believe has support for using a
>variety of different event-loops, including Tkinter and wxWidgets, as
>well as it's own.

Technically, it just gives Tkinter a chance to run every so often; you 
specifically *can't* use Tkinter's event loop.  Instead, you run the 
Twisted event loop after telling it that you'd like Tkinter to be kept in 
the loop, as it were.

But Twisted is definitely worth looking at for this sort of thing.  It's 
the nearest thing to a "standard Python event loop" that exists, apart from 
the asyncore stuff in the stdlib (which doesn't have any GUI support AFAIK).



More information about the Python-Dev mailing list