Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fcd3de

Browse files
committed
Fix some broken/missing function:: declarations in turtle docs
pointed out by Gregor Lingl in issue 6339.
1 parent 1279209 commit 7fcd3de

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/turtle.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,7 @@ Appearance
11411141

11421142

11431143
.. function:: shapesize(stretch_wid=None, stretch_len=None, outline=None)
1144+
turtlesize(stretch_wid=None, stretch_len=None, outline=None)
11441145

11451146
:param stretch_wid: positive number
11461147
:param stretch_len: positive number
@@ -1166,7 +1167,7 @@ Appearance
11661167
(5, 5, 8)
11671168

11681169

1169-
.. function:: shearfactor(self, shear=None):
1170+
.. function:: shearfactor(shear=None)
11701171

11711172
:param shear: number (optional)
11721173

@@ -1274,7 +1275,7 @@ Appearance
12741275
>>> (4.0, -1.0, -0.0, 2.0)
12751276

12761277

1277-
.. function:: get_shapepoly():
1278+
.. function:: get_shapepoly()
12781279

12791280
Return the current shape polygon as tuple of coordinate pairs. This
12801281
can be used to define a new shape or components of a compound shape.
@@ -1402,6 +1403,7 @@ Special Turtle methods
14021403

14031404

14041405
.. function:: getturtle()
1406+
getpen()
14051407

14061408
Return the Turtle object itself. Only reasonable use: as a function to
14071409
return the "anonymous turtle":
@@ -1692,7 +1694,7 @@ Using screen events
16921694
>>> screen.listen()
16931695

16941696

1695-
.. function:: onkeypress(fun, key=None):
1697+
.. function:: onkeypress(fun, key=None)
16961698

16971699
:param fun: a function with no arguments or ``None``
16981700
:param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
@@ -1783,8 +1785,7 @@ Input methods
17831785
>>> screen.textinput("NIM", "Name of first player:")
17841786

17851787

1786-
.. function:: numinput(self, title, prompt,
1787-
default=None, minval=None, maxval=None):
1788+
.. function:: numinput(title, prompt, default=None, minval=None, maxval=None)
17881789

17891790
:param title: string
17901791
:param prompt: string

0 commit comments

Comments
 (0)