Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #qtimer #python
ADD COMMENT
Topic
Name
9+8 =