Lines Matching defs:pen
134 'pen', 'pencolor', 'pendown', 'pensize', 'penup', 'pos', 'position',
1757 Move turtle to an absolute position. If the pen is down,
1846 >>> pen = Turtle()
1847 >>> pen.forward(77)
1848 >>> turtle.distance(pen)
1951 current pen position. Draw the arc in counterclockwise direction
2071 self.pen(resizemode=rmode)
2093 self.pen(pensize=width)
2097 """Pull the pen up -- no drawing when moving.
2108 self.pen(pendown=False)
2111 """Pull the pen down -- drawing when moving.
2122 self.pen(pendown=True)
2125 """Return True if pen is down, False if it's up.
2175 self.pen(speed=speed)
2219 self.pen(pencolor=pcolor, fillcolor=fcolor)
2256 self.pen(pencolor=color)
2292 self.pen(fillcolor=color)
2307 self.pen(shown=True)
2323 self.pen(shown=False)
2337 def pen(self, pen=None, **pendict):
2338 """Return or set the pen's attributes.
2341 pen -- a dictionary with some or all of the below listed keys.
2345 Return or set the pen's attributes in a 'pen-dictionary'
2360 pen()-call to restore the former pen-state. Moreover one
2362 This can be used to set several pen attributes in one statement.
2366 >>> turtle.pen(fillcolor="black", pencolor="red", pensize=10)
2367 >>> turtle.pen()
2371 >>> penstate=turtle.pen()
2374 >>> turtle.pen()
2378 >>> p.pen(penstate, fillcolor="green")
2379 >>> p.pen()
2397 if not (pen or pendict):
2400 if isinstance(pen, dict):
2401 p = pen
2411 self.undobuffer.push(("pen", _p_buf))
2618 """Delete all of pen's drawings"""
2789 Return or set the pen's attributes x/y-stretchfactors and/or outline.
2818 self.pen(resizemode="user",
2842 self.pen(resizemode="user", shearfactor=shear)
2908 self.pen(resizemode="user", tilt=tilt)
2966 self.pen(resizemode="user")
3139 If n is None, delete all of pen's stamps,
3162 """Move the pen to the point end, thereby drawing a line
3163 if pen is down. All other methods for turtle movement depend
3280 """Turns pen clockwise by angle.
3400 pen = self.pen()
3412 self.pen(pen)
3439 If move is True, the pen is moved to the bottom-right corner
3602 across the screen thereby producing handdrawings (if pen is
3636 elif action == "pen":
3637 TPen.pen(self, data[0])