Kaydet (Commit) 7fcd3de3 authored tarafından R. David Murray's avatar R. David Murray

Fix some broken/missing function:: declarations in turtle docs

pointed out by Gregor Lingl in issue 6339.
üst 12792092
...@@ -1141,6 +1141,7 @@ Appearance ...@@ -1141,6 +1141,7 @@ Appearance
.. function:: shapesize(stretch_wid=None, stretch_len=None, outline=None) .. function:: shapesize(stretch_wid=None, stretch_len=None, outline=None)
turtlesize(stretch_wid=None, stretch_len=None, outline=None)
:param stretch_wid: positive number :param stretch_wid: positive number
:param stretch_len: positive number :param stretch_len: positive number
...@@ -1166,7 +1167,7 @@ Appearance ...@@ -1166,7 +1167,7 @@ Appearance
(5, 5, 8) (5, 5, 8)
.. function:: shearfactor(self, shear=None): .. function:: shearfactor(shear=None)
:param shear: number (optional) :param shear: number (optional)
...@@ -1274,7 +1275,7 @@ Appearance ...@@ -1274,7 +1275,7 @@ Appearance
>>> (4.0, -1.0, -0.0, 2.0) >>> (4.0, -1.0, -0.0, 2.0)
.. function:: get_shapepoly(): .. function:: get_shapepoly()
Return the current shape polygon as tuple of coordinate pairs. This Return the current shape polygon as tuple of coordinate pairs. This
can be used to define a new shape or components of a compound shape. can be used to define a new shape or components of a compound shape.
...@@ -1402,6 +1403,7 @@ Special Turtle methods ...@@ -1402,6 +1403,7 @@ Special Turtle methods
.. function:: getturtle() .. function:: getturtle()
getpen()
Return the Turtle object itself. Only reasonable use: as a function to Return the Turtle object itself. Only reasonable use: as a function to
return the "anonymous turtle": return the "anonymous turtle":
...@@ -1692,7 +1694,7 @@ Using screen events ...@@ -1692,7 +1694,7 @@ Using screen events
>>> screen.listen() >>> screen.listen()
.. function:: onkeypress(fun, key=None): .. function:: onkeypress(fun, key=None)
:param fun: a function with no arguments or ``None`` :param fun: a function with no arguments or ``None``
:param key: a string: key (e.g. "a") or key-symbol (e.g. "space") :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
...@@ -1783,8 +1785,7 @@ Input methods ...@@ -1783,8 +1785,7 @@ Input methods
>>> screen.textinput("NIM", "Name of first player:") >>> screen.textinput("NIM", "Name of first player:")
.. function:: numinput(self, title, prompt, .. function:: numinput(title, prompt, default=None, minval=None, maxval=None)
default=None, minval=None, maxval=None):
:param title: string :param title: string
:param prompt: string :param prompt: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment