PyDocs

Nav

Graphical user interfaces with Tk

ontimer

turtle

function
  • ontimer(fun, t=0)
Install a timer that calls fun after t milliseconds.
1 Example
>>> running = True
>>> def f():
...     if running:
...         fd(50)
...         lt(60)
...         screen.ontimer(f, 250)
>>> f()   ### makes the turtle march around
>>> running = False
from the Python docs
See Also
No see-alsos for turtle/ontimer
0 Notes
No notes for ontimer