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

Method clear

Lib/turtle.py:2714–2727  ·  view source on GitHub ↗

Delete the turtle's drawings from the screen. Do not move turtle. No arguments. Delete the turtle's drawings from the screen. Do not move turtle. State and position of the turtle as well as drawings of other turtles are not affected. Examples (for a Turtle

(self)

Source from the content-addressed store, hash-verified

2712
2713
2714 def clear(self):
2715 """Delete the turtle's drawings from the screen. Do not move turtle.
2716
2717 No arguments.
2718
2719 Delete the turtle's drawings from the screen. Do not move turtle.
2720 State and position of the turtle as well as drawings of other
2721 turtles are not affected.
2722
2723 Examples (for a Turtle instance named turtle):
2724 >>> turtle.clear()
2725 """
2726 self._clear()
2727 self._update()
2728
2729 def _update_data(self):
2730 self.screen._incrementudc()

Callers

nothing calls this directly

Calls 2

_clearMethod · 0.95
_updateMethod · 0.95

Tested by

no test coverage detected