Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

turtle graphics documentation|pensize

>>> turtle.pen(fillcolor="black", pencolor="red", pensize=10)
>>> sorted(turtle.pen().items())
[('fillcolor', 'black'), ('outline', 1), ('pencolor', 'red'),
 ('pendown', True), ('pensize', 10), ('resizemode', 'noresize'),
 ('shearfactor', 0.0), ('shown', True), ('speed', 9),
 ('stretchfactor', (1.0, 1.0)), ('tilt', 0.0)]
>>> penstate=turtle.pen()
>>> turtle.color("yellow", "")
>>> turtle.penup()
>>> sorted(turtle.pen().items())[:3]
[('fillcolor', ''), ('outline', 1), ('pencolor', 'yellow')]
>>> turtle.pen(penstate, fillcolor="green")
>>> sorted(turtle.pen().items())[:3]
[('fillcolor', 'green'), ('outline', 1), ('pencolor', 'red')]
Comment

PREVIOUS NEXT
Code Example
Python :: python 3 tkinter treeview example 
Python :: discord.py permissions 
Python :: digital differential analyzer 
Python :: install scrapy on pycharm 
Python :: re python3 
Python :: wifite subsystem 
Python :: a int and float. python 
Python :: python convert list of lists of strings to int 
Python :: staticmethod python 
Python :: python change dictionary key 
Python :: argparse print help if no arguments 
Python :: sort dict 
Python :: append 1 colimn in pandas df 
Python :: Group by a column, count sum of other columns 
Python :: how to convert string to integer in python 
Python :: python enumerate 
Python :: django change settings at runtime 
Python :: argparse accept only few options 
Python :: iterate over a list python 
Python :: join python documentation 
Python :: flask where to put db.create_all 
Python :: django admin readonly models 
Python :: openmp for loop 
Python :: fizz buzz 
Python :: defaultdict python 
Python :: remove french stopwords with spacy 
Python :: python condition question 
Python :: flask rest api upload image 
Python :: data type array 
Python :: open image in PILLOW 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =