MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / home

Method home

tools/python-3.11.9-amd64/Lib/turtle.py:1779–1791  ·  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

1777 self._goto(Vec2D(x, y))
1778
1779 def home(self):
1780 """Move turtle to the origin - coordinates (0,0).
1781
1782 No arguments.
1783
1784 Move turtle to the origin - coordinates (0,0) and set its
1785 heading to its start-orientation (which depends on mode).
1786
1787 Example (for a Turtle instance named turtle):
1788 >>> turtle.home()
1789 """
1790 self.goto(0, 0)
1791 self.setheading(0)
1792
1793 def setx(self, x):
1794 """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