Alternative to time.sleep ()

0

I have a program that is constantly checking if something on the screen has changed place with a while and I would like to do a function that executes an action and waits for the seconds that I indicate to execute it again, the problem that I find is that if I put a time.sleep(5) this would pause the code 5 seconds and that can not happen, because I need to be verifying all the time What would be the solution to this problem? What is the alternative to time.sleep?

solution:

import threading

threading.Timer(5, funcion).start()
    
asked by Aimspot 13.10.2018 в 10:52
source

0 answers