468,119 Members | 1,838 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

How to loop and call a function?

Hi all,

I want to loop and call a function every 1000 milliseconds with wx.CallLater. I implemented this (see below), but it does not factor in the delay - it seems to execute automatically. How can I get this to wait 1000 milliseconds between function calls?

This function is within a class. In my main module, I instantiate an object of this class and call the task_loop function. I intend to keep the loop going until will_break is set to True, and task_loop returns the work_session_agenda in the main module.

Thanks ahead!!!
Jul 3 '19 #1
1 680
5,390 Expert Mod 4TB
how does your code look like so far?
Jul 3 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Lucy Randles | last post: by
2 posts views Thread by PawelR | last post: by
4 posts views Thread by Dave | last post: by
7 posts views Thread by Tiraman | last post: by
12 posts views Thread by leaf | last post: by
9 posts views Thread by Andrew Poulos | last post: by
13 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.