Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

alternative to time.sleep() in python

root = Tk()
root.after(x, my_fuction)
# x is the time(in milliseconds) and my_function is the callback to whatever function you wanna perform after x milliseconds
root.mainloop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #alternative #python
ADD COMMENT
Topic
Name
5+1 =