How to create a timer/scheduler in Python?

2008-07-12 Thread John Dann
I need what I'd call (in .Net) a timer, ie I need to run a function eg every 2 seconds - it doesn't need to be millisec accurate but it would be nice if it wasn't eg every 4 seconds or something. Rather surprisingly, Core Python (Chun) doesn't seem to index 'timer' or 'scheduler', which leaves me

Re: How to create a timer/scheduler in Python?

2008-07-12 Thread Uwe Schmitt
On 12 Jul., 11:30, John Dann [EMAIL PROTECTED] wrote: I need what I'd call (in .Net) a timer, ie I need to run a function eg every 2 seconds - it doesn't need to be millisec accurate but it would be nice if it wasn't eg every 4 seconds or something. Rather surprisingly, Core Python (Chun)

Re: How to create a timer/scheduler in Python?

2008-07-12 Thread Marc 'BlackJack' Rintsch
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

Re: How to create a timer/scheduler in Python?

2008-07-12 Thread Daniel Fetchinson
I need what I'd call (in .Net) a timer, ie I need to run a function eg every 2 seconds - it doesn't need to be millisec accurate but it would be nice if it wasn't eg every 4 seconds or something. Rather surprisingly, Core Python (Chun) doesn't seem to index 'timer' or 'scheduler', which

Re: How to create a timer/scheduler in Python?

2008-07-12 Thread MrJean1
There is a module called sched in the standard Python library http://docs.python.org/lib/module-sched.html /Jean Brouwers John Dann wrote: I need what I'd call (in .Net) a timer, ie I need to run a function eg every 2 seconds - it doesn't need to be millisec accurate but it would be nice