I need a timer that calls a function every n milliseconds. This should not be in a endloss loop (while true) or something like that
import threading
def printit():
threading.Timer(5.0, printit).start()
print "Hello, World!"
Or
def printit():
root.after(100,printit())
As I have a GUI that should be able to interact. So that I can stop the timer.
Some ideas? Thanks!