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

Method reset

Lib/turtle.py:1193–1203  ·  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

1191 self._colormode = int(cmode)
1192
1193 def reset(self):
1194 """Reset all Turtles on the Screen to their initial state.
1195
1196 No argument.
1197
1198 Example (for a TurtleScreen instance named screen):
1199 >>> screen.reset()
1200 """
1201 for turtle in self._turtles:
1202 turtle._setmode(self._mode)
1203 turtle.reset()
1204
1205 def turtles(self):
1206 """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