. :-)
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
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 to call functionOne()
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 has
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 standard library has
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
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.
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:
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 sched module
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