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

Method isdown

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

2189 self.pen(pendown=True)
2190
2191 def isdown(self):
2192 """Return True if pen is down, False if it's up.
2193
2194 No argument.
2195
2196 Example (for a Turtle instance named turtle):
2197 >>> turtle.penup()
2198 >>> turtle.isdown()
2199 False
2200 >>> turtle.pendown()
2201 >>> turtle.isdown()
2202 True
2203 """
2204 return self._drawing
2205
2206 def speed(self, speed=None):
2207 """ Return or set the turtle's speed.

Callers 4

teleportMethod · 0.95
test_teleportMethod · 0.95
teleportMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_teleportMethod · 0.76