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

Method clear

tools/python-3.11.9-amd64/Lib/turtle.py:2631–2644  ·  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

(self)

Source from the content-addressed store, hash-verified

2629
2630
2631 def clear(self):
2632 """Delete the turtle's drawings from the screen. Do not move turtle.
2633
2634 No arguments.
2635
2636 Delete the turtle's drawings from the screen. Do not move turtle.
2637 State and position of the turtle as well as drawings of other
2638 turtles are not affected.
2639
2640 Examples (for a Turtle instance named turtle):
2641 >>> turtle.clear()
2642 """
2643 self._clear()
2644 self._update()
2645
2646 def _update_data(self):
2647 self.screen._incrementudc()

Callers

nothing calls this directly

Calls 2

_clearMethod · 0.95
_updateMethod · 0.95

Tested by

no test coverage detected