MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / reset

Method reset

Python/Turtle.py:1431–1437  ·  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

1429 TNavigator.reset(self)
1430
1431 def reset(self):
1432 """reset turtle to its initial values
1433
1434 Will be overwritten by parent class
1435 """
1436 self._position = Vec2D(0.0, 0.0)
1437 self._orient = TNavigator.START_ORIENTATION[self._mode]
1438
1439 def _setmode(self, mode=None):
1440 """Set turtle-mode to 'standard', 'world' or 'logo'.

Callers

nothing calls this directly

Calls 1

Vec2DClass · 0.85

Tested by

no test coverage detected