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

Method reset

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

Reset all Turtles on the Screen to their initial state. No argument. Example (for a TurtleScreen instance named screen): >>> screen.reset()

(self)

Source from the content-addressed store, hash-verified

1200 self._colormode = int(cmode)
1201
1202 def reset(self):
1203 """Reset all Turtles on the Screen to their initial state.
1204
1205 No argument.
1206
1207 Example (for a TurtleScreen instance named screen):
1208 >>> screen.reset()
1209 """
1210 for turtle in self._turtles:
1211 turtle._setmode(self._mode)
1212 turtle.reset()
1213
1214 def turtles(self):
1215 """Return the list of turtles on the screen.

Callers 1

modeMethod · 0.95

Calls 2

_setmodeMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected