Python 3.6.3: Is There A Method In The Turtle Library That Does The Same Thing As Root.after?
In python, I am making a turtle program and I need to loop a function, I wouldn't use def n():#code; time.sleep(time); n() as I am sure it would raise a RecursionError soon enough,
Solution 1:
what about?
turtle.ontimer(fun, t=0)
Parameters: fun – a function with no arguments t – a number >= 0
https://docs.python.org/2/library/turtle.html#turtle.ontimer
Post a Comment for "Python 3.6.3: Is There A Method In The Turtle Library That Does The Same Thing As Root.after?"