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

Method reset

Lib/turtle.py:1593–1599  ·  view source on GitHub ↗

reset turtle to its initial values Will be overwritten by parent class

(self)

Source from the content-addressed store, hash-verified

1591 TNavigator.reset(self)
1592
1593 def reset(self):
1594 """reset turtle to its initial values
1595
1596 Will be overwritten by parent class
1597 """
1598 self._position = Vec2D(0.0, 0.0)
1599 self._orient = TNavigator.START_ORIENTATION[self._mode]
1600
1601 def _setmode(self, mode=None):
1602 """Set turtle-mode to 'standard', 'world' or 'logo'.

Callers

nothing calls this directly

Calls 1

Vec2DClass · 0.70

Tested by

no test coverage detected