Re: [Tutor] Timers in Python

2007-10-16 Thread Trilok Khairnar
eries. :-) Regards, Trilok. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Noufal Ibrahim Sent: Thursday, October 04, 2007 10:53 PM To: Kamal Cc: tutor@python.org Subject: Re: [Tutor] Timers in Python Kent Johnson wrote: > Kamal wrote: >> hello everyone,

Re: [Tutor] Timers in Python

2007-10-15 Thread Kamal
Thanks everyone for the useful feedback. On 10/4/07, Noufal Ibrahim <[EMAIL PROTECTED]> wrote: > > Kent Johnson wrote: > > Kamal wrote: > >> hello everyone, > >> > >> Is there a method in Python which does what > >> setInterval('someFunction()',5000) does in Javascript. > >> > >> Basically, I want

Re: [Tutor] Timers in Python

2007-10-04 Thread Noufal Ibrahim
Kent Johnson wrote: > Kamal wrote: >> hello everyone, >> >> Is there a method in Python which does what >> setInterval('someFunction()',5000) does in Javascript. >> >> Basically, I want to call functionOne() every x minutes, and wondering >> whats the best way to do it. You can also look at the sc

Re: [Tutor] Timers in Python

2007-10-04 Thread Rikard Bosnjakovic
On 04/10/2007, Kamal <[EMAIL PROTECTED]> wrote: > Basically, I want to call functionOne() every x minutes, and wondering > whats the best way to do it. If you need to run the functions concurrently, use threads. Else you can setup a simple signal-handler for SIGALRM and set the time accordingly:

Re: [Tutor] Timers in Python

2007-10-04 Thread Kent Johnson
Alan Gauld wrote: > If its within a GUI context then I think both Tkinter and wxPython > have timer facilities although I've never used them. Tkinter: http://www.pythonware.com/library/tkinter/introduction/x9507-alarm-handlers-and-other.htm ___ Tutor ma

Re: [Tutor] Timers in Python

2007-10-04 Thread Kent Johnson
Kamal wrote: > hello everyone, > > Is there a method in Python which does what > setInterval('someFunction()',5000) does in Javascript. > > Basically, I want to call functionOne() every x minutes, and wondering > whats the best way to do it. http://aspn.activestate.com/ASPN/Cookbook/Python/Recip

Re: [Tutor] Timers in Python

2007-10-04 Thread Alan Gauld
"Rob Andrews" <[EMAIL PROTECTED]> wrote >> Is there a method in Python which does what >> setInterval('someFunction()',5000) does in Javascript. >> >> Basically, I want to call functionOne() every x minutes, and >> wondering >> whats the best way to do it. > > Yes, the time module in the standar

Re: [Tutor] Timers in Python

2007-10-04 Thread Rob Andrews
On 10/4/07, Kamal <[EMAIL PROTECTED]> wrote: > Is there a method in Python which does what > setInterval('someFunction()',5000) does in Javascript. > > Basically, I want to call functionOne() every x minutes, and wondering > whats the best way to do it. Yes, the time module in the standard library

[Tutor] Timers in Python

2007-10-03 Thread Kamal
hello everyone, Is there a method in Python which does what setInterval('someFunction()',5000) does in Javascript. Basically, I want to call functionOne() every x minutes, and wondering whats the best way to do it. -- Thanks, Kamal ___ Tutor maillist