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

Method pendown

Python/Turtle.py:2008–2020  ·  view source on GitHub ↗

Pull the pen down -- drawing when moving. Aliases: pendown | pd | down No argument. Example (for a Turtle instance named turtle): >>> turtle.pendown()

(self)

Source from the content-addressed store, hash-verified

2006 self.pen(pendown=False)
2007
2008 def pendown(self):
2009 """Pull the pen down -- drawing when moving.
2010
2011 Aliases: pendown | pd | down
2012
2013 No argument.
2014
2015 Example (for a Turtle instance named turtle):
2016 >>> turtle.pendown()
2017 """
2018 if self._drawing:
2019 return
2020 self.pen(pendown=True)
2021
2022 def isdown(self):
2023 """Return True if pen is down, False if it's up.

Callers 1

dotMethod · 0.80

Calls 1

penMethod · 0.95

Tested by

no test coverage detected