qtimer python

#QTimer example
timer = QTimer() #Creates an instance of the QTimer class
timer.timeout.connect(function) #connects the timeout of the timer to a function
milliseconds = 1000 #the time taken between each function call
timer.start(milliseconds) #start the timer so the function is called repeatedly
#after a delay of milliseconds
def function():
  pass #do stuff here
68Duck