MCPcopy Index your code
hub / github.com/python/cpython / _ontimer

Method _ontimer

Lib/turtle.py:704–710  ·  view source on GitHub ↗

Install a timer, which calls fun after t milliseconds.

(self, fun, t)

Source from the content-addressed store, hash-verified

702 self.cv.focus_force()
703
704 def _ontimer(self, fun, t):
705 """Install a timer, which calls fun after t milliseconds.
706 """
707 if t == 0:
708 self.cv.after_idle(fun)
709 else:
710 self.cv.after(t, fun)
711
712 def _createimage(self, image):
713 """Create and return image item on canvas.

Callers 1

ontimerMethod · 0.80

Calls 2

after_idleMethod · 0.80
afterMethod · 0.80

Tested by

no test coverage detected