We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952ec27 commit 132b82dCopy full SHA for 132b82d
Doc/library/turtle.rst
@@ -1079,6 +1079,8 @@ Drawing state
1079
1080
:param width: a positive number
1081
1082
+ :raises TurtleGraphicsError: If *width* is less than zero.
1083
+
1084
Set the line thickness to *width* or return it. If resizemode is set to
1085
"auto" and turtleshape is a polygon, that polygon is drawn with the same line
1086
thickness. If no argument is given, the current pensize is returned.
@@ -1090,6 +1092,9 @@ Drawing state
1090
1092
1
1091
1093
>>> turtle.pensize(10) # from here on lines of width 10 are drawn
1094
1095
+ .. versionchanged:: next
1096
+ Raise :exc:`TurtleGraphicsError` if *width* is less than zero.
1097
1098
1099
.. function:: pen(pen=None, **pendict)
1100
0 commit comments