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

Method _update

Lib/turtle.py:2737–2753  ·  view source on GitHub ↗

Perform a Turtle-data update.

(self)

Source from the content-addressed store, hash-verified

2735 self._pencolor, self._pensize)
2736
2737 def _update(self):
2738 """Perform a Turtle-data update.
2739 """
2740 screen = self.screen
2741 if screen._tracing == 0:
2742 return
2743 elif screen._tracing == 1:
2744 self._update_data()
2745 self._drawturtle()
2746 screen._update() # TurtleScreenBase
2747 screen._delay(screen._delayvalue) # TurtleScreenBase
2748 else:
2749 self._update_data()
2750 if screen._updatecounter == 0:
2751 for t in screen.turtles():
2752 t._drawturtle()
2753 screen._update()
2754
2755 def _tracer(self, flag=None, delay=None):
2756 """Turns turtle animation on/off and set delay for update drawings.

Callers 14

__init__Method · 0.95
resetMethod · 0.95
clearMethod · 0.95
shapeMethod · 0.95
clearstampMethod · 0.95
clearstampsMethod · 0.95
_gotoMethod · 0.95
_undogotoMethod · 0.95
_rotateMethod · 0.95
begin_fillMethod · 0.95
end_fillMethod · 0.95
_writeMethod · 0.95

Calls 5

_update_dataMethod · 0.95
_drawturtleMethod · 0.95
turtlesMethod · 0.80
_updateMethod · 0.45
_delayMethod · 0.45

Tested by

no test coverage detected