<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">
<div>I am not an expert, but why not to use time.sleep(5)?</div>
<div>If you are using wxPython, you may also try wx.Timer, in which you could set its interval.</div>
<div> </div></div></blockquote></div>Thanks for your reply.<br>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.<br>
Petr Jakes<br></div>