Hi there!
Sorry for the basic question. I am trying to find a way to run a function every x seconds, Iv tried to find a MTimer or QTimer way to do but didnt have success.
I wanted to run the function when open a simple cmds.window() and stop the function when closes this window.
Somebody knows how to do that?
thanks in advance!
Solved! Go to Solution.
Hi there!
Sorry for the basic question. I am trying to find a way to run a function every x seconds, Iv tried to find a MTimer or QTimer way to do but didnt have success.
I wanted to run the function when open a simple cmds.window() and stop the function when closes this window.
Somebody knows how to do that?
thanks in advance!
Solved! Go to Solution.
Solved by Kahylan. Go to Solution.
Hi!
Since you are working in Python, you could just use the threading library to keep track of time.
https://docs.python.org/3/library/threading.html#timer-objects
I hope it helps!
Hi!
Since you are working in Python, you could just use the threading library to keep track of time.
https://docs.python.org/3/library/threading.html#timer-objects
I hope it helps!
Can't find what you're looking for? Ask the community or share your knowledge.