How to create a timer/scheduler in Python?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat Jul 12 09:36:22 EDT 2008


On Sat, 12 Jul 2008 10:30:00 +0100, John Dann wrote:

> Looking around on the net I can see references to a thread timer, but
> I'm not really looking to start any new threads (I just want part of
> the GUI to update every 2 secs) and don't want to get into that sort
> of complication while still just learning Python.

Look into the GUI toolkit because that's typically something solved with
functions from the specific toolkit.

> Is there really no simple timer/scheduler function available in
> Python?

You can do that quite easily with threads but almost all GUI toolkits
don't like it if you access the GUI from multiple threads.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list