event loops and Python?

Fredrik Lundh effbot at telia.com
Sat Mar 11 12:12:06 EST 2000


Kragen Sitaker <kragen at dnaco.net> wrote:
> I know Tkinter-driven Python programs run from an event loop, but I
> don't know what the interface to it is.

just call mainloop(), and off you go.

you can use after() and after_idle() to schedule
background tasks.  for more info, skip over to:

http://www.pythonware.com/library/tkinter/introduction/basic-widget-methods.
htm

and read the subchapters on "event processing" and "alarm
handlers and other non-event callbacks".

</F>





More information about the Python-list mailing list