event loops and Python?

Les Schaffer godzilla at netmeg.net
Sat Mar 11 17:25:21 CET 2000


Kragen sed:

> And I don't like threads.  ... So I want an event loop.  I want to
> be able to schedule and unschedule background tasks to be done when
> no events are being handled.

Tkinter has a call after_idle which may do what you need.

from the Tcl/Tk Pocket Reference:

after idle [ arg1 arg2 arg3 ...]
Arranges for command (concat of args) to be run later when Tk is
idle.

les schaffer



More information about the Python-list mailing list