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

Method isdown

Python/Turtle.py:2022–2035  ·  view source on GitHub ↗

Return True if pen is down, False if it's up. No argument. Example (for a Turtle instance named turtle): >>> turtle.penup() >>> turtle.isdown() False >>> turtle.pendown() >>> turtle.isdown() True

(self)

Source from the content-addressed store, hash-verified

2020 self.pen(pendown=True)
2021
2022 def isdown(self):
2023 """Return True if pen is down, False if it's up.
2024
2025 No argument.
2026
2027 Example (for a Turtle instance named turtle):
2028 >>> turtle.penup()
2029 >>> turtle.isdown()
2030 False
2031 >>> turtle.pendown()
2032 >>> turtle.isdown()
2033 True
2034 """
2035 return self._drawing
2036
2037 def speed(self, speed=None):
2038 """ Return or set the turtle's speed.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected