Does anyone know of an event loop library (or bindings) available for Python 3? It\'s okay if it only does UNIX systems, though I would prefer something that does Windows a
I suggest something like:
while True:
while queue:
queue.pop()()
For that to work, however, you need to have the event system put callable events onto the queue.
(If you are more interested in a specific binding to a specific framework, such as GTK, Qt, WxWidgets, NCurses, Cocoa, Winforms, whatever, then say that!).
libev is available for python as pyev module: http://code.google.com/p/pyev/