How to run the function on time?

Hello. You need to run the function in time in the likeness of setTimeout in js. How can I do that?
August 19th 19 at 23:39
1 answer
August 19th 19 at 23:41
Solution
Approximately a thousand ways. stackoverflow.com/questions/3433559/python-time-delays - this is the easiest way and oak on the bare Python. Vskidku the same able via twisted callLater, using pyqt QTimer. If you need flexibility https://pypi.python.org/pypi/schedule
Thank you. Can tell me, does this same function but to, she didn't stop, written for example 5 seconds, and it runs every 5 seconds - lucio_Brown commented on August 19th 19 at 23:44
In the first case, add the call timer at the end of the function, the task is twisted.LoopingCall, QTimer from the box can be, as well as schedule - efrain.Rolfso commented on August 19th 19 at 23:47

Find more questions by tags Python