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

Method home

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

1844 self._goto(Vec2D(x, y))
1845
1846 def home(self):
1847 """Move turtle to the origin - coordinates (0,0).
1848
1849 No arguments.
1850
1851 Move turtle to the origin - coordinates (0,0) and set its
1852 heading to its start-orientation (which depends on mode).
1853
1854 Example (for a Turtle instance named turtle):
1855 >>> turtle.home()
1856 """
1857 self.goto(0, 0)
1858 self.setheading(0)
1859
1860 def setx(self, x):
1861 """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