MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _update

Method _update

tools/python-3.11.9-amd64/Lib/turtle.py:2654–2670  ·  view source on GitHub ↗

Perform a Turtle-data update.

(self)

Source from the content-addressed store, hash-verified

2652 self._pencolor, self._pensize)
2653
2654 def _update(self):
2655 """Perform a Turtle-data update.
2656 """
2657 screen = self.screen
2658 if screen._tracing == 0:
2659 return
2660 elif screen._tracing == 1:
2661 self._update_data()
2662 self._drawturtle()
2663 screen._update() # TurtleScreenBase
2664 screen._delay(screen._delayvalue) # TurtleScreenBase
2665 else:
2666 self._update_data()
2667 if screen._updatecounter == 0:
2668 for t in screen.turtles():
2669 t._drawturtle()
2670 screen._update()
2671
2672 def _tracer(self, flag=None, delay=None):
2673 """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