do something in time interval

Petr Jakeš petr.jakes at tpc.cz
Mon Oct 6 15:13:21 EDT 2008


>
> I am not an expert, but why not to use time.sleep(5)?
> If you are using wxPython, you may also try wx.Timer, in which you could
> set its interval.
>
>
Thanks for your reply.
During the 5s period my script has to do some stuff instead of sleeping.
Thats why it runs in the loop and once in 5s period it has to trigger some
other stuff(function, method, action) to do.
Petr Jakes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081006/c2236314/attachment.html>


More information about the Python-list mailing list