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

Method home

Python/Turtle.py:1677–1689  ·  view source on GitHub ↗

Move turtle to the origin - coordinates (0,0). No arguments. Move turtle to the origin - coordinates (0,0) and set its heading to its start-orientation (which depends on mode). Example (for a Turtle instance named turtle): >>> turtle.home()

(self)

Source from the content-addressed store, hash-verified

1675 self._goto(Vec2D(x, y))
1676
1677 def home(self):
1678 """Move turtle to the origin - coordinates (0,0).
1679
1680 No arguments.
1681
1682 Move turtle to the origin - coordinates (0,0) and set its
1683 heading to its start-orientation (which depends on mode).
1684
1685 Example (for a Turtle instance named turtle):
1686 >>> turtle.home()
1687 """
1688 self.goto(0, 0)
1689 self.setheading(0)
1690
1691 def setx(self, x):
1692 """Set the turtle's first coordinate to x

Callers

nothing calls this directly

Calls 2

gotoMethod · 0.95
setheadingMethod · 0.95

Tested by

no test coverage detected