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

Method penup

tools/python-3.11.9-amd64/Lib/turtle.py:2096–2108  ·  view source on GitHub ↗

Pull the pen up -- no drawing when moving. Aliases: penup | pu | up No argument Example (for a Turtle instance named turtle): >>> turtle.penup()

(self)

Source from the content-addressed store, hash-verified

2094
2095
2096 def penup(self):
2097 """Pull the pen up -- no drawing when moving.
2098
2099 Aliases: penup | pu | up
2100
2101 No argument
2102
2103 Example (for a Turtle instance named turtle):
2104 >>> turtle.penup()
2105 """
2106 if not self._drawing:
2107 return
2108 self.pen(pendown=False)
2109
2110 def pendown(self):
2111 """Pull the pen down -- drawing when moving.

Callers 3

maketreeFunction · 0.80
startFunction · 0.80
__init__Method · 0.80

Calls 1

penMethod · 0.95

Tested by

no test coverage detected