On May 7, 10:07 pm, johnny <[EMAIL PROTECTED]> wrote:
> Is there a way to call a function on a specified interval(seconds,
> milliseconds) every time, like polling user defined method?
>
> Thanks.

Sure,

>>> def baz():
   ...:     print "Baz!"
   ...:

>>> from threading import Timer

>>> timer=Timer(5.0,baz)

>>> timer.start()

>>> Baz!


>>>


Cheers,
-Nick Vatamaniuc

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to