Commit abe74feb authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

[2.7] bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565). (GH-10943)

(cherry picked from commit 4edeaeac)
Co-authored-by: default avatarSrinivas  Thatiparthy (శ్రీనివాస్  తాటిపర్తి) <thatiparthysreenivas@gmail.com>
parent c6639cda
...@@ -1229,7 +1229,7 @@ Using events ...@@ -1229,7 +1229,7 @@ Using events
:param fun: a function with two arguments which will be called with the :param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas coordinates of the clicked point on the canvas
:param num: number of the mouse-button, defaults to 1 (left mouse button) :param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be :param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added, otherwise it will replace a former binding added, otherwise it will replace a former binding
...@@ -1250,7 +1250,7 @@ Using events ...@@ -1250,7 +1250,7 @@ Using events
:param fun: a function with two arguments which will be called with the :param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas coordinates of the clicked point on the canvas
:param num: number of the mouse-button, defaults to 1 (left mouse button) :param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be :param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added, otherwise it will replace a former binding added, otherwise it will replace a former binding
...@@ -1274,7 +1274,7 @@ Using events ...@@ -1274,7 +1274,7 @@ Using events
:param fun: a function with two arguments which will be called with the :param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas coordinates of the clicked point on the canvas
:param num: number of the mouse-button, defaults to 1 (left mouse button) :param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be :param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added, otherwise it will replace a former binding added, otherwise it will replace a former binding
...@@ -1656,7 +1656,7 @@ Using screen events ...@@ -1656,7 +1656,7 @@ Using screen events
:param fun: a function with two arguments which will be called with the :param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas coordinates of the clicked point on the canvas
:param num: number of the mouse-button, defaults to 1 (left mouse button) :param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be :param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added, otherwise it will replace a former binding added, otherwise it will replace a former binding
......
...@@ -1300,7 +1300,7 @@ class TurtleScreen(TurtleScreenBase): ...@@ -1300,7 +1300,7 @@ class TurtleScreen(TurtleScreenBase):
Arguments: Arguments:
fun -- a function with two arguments, the coordinates of the fun -- a function with two arguments, the coordinates of the
clicked point on the canvas. clicked point on the canvas.
num -- the number of the mouse-button, defaults to 1 btn -- the number of the mouse-button, defaults to 1
Example (for a TurtleScreen instance named screen Example (for a TurtleScreen instance named screen
and a Turtle instance named turtle): and a Turtle instance named turtle):
...@@ -3418,7 +3418,7 @@ class RawTurtle(TPen, TNavigator): ...@@ -3418,7 +3418,7 @@ class RawTurtle(TPen, TNavigator):
Arguments: Arguments:
fun -- a function with two arguments, to which will be assigned fun -- a function with two arguments, to which will be assigned
the coordinates of the clicked point on the canvas. the coordinates of the clicked point on the canvas.
num -- number of the mouse-button defaults to 1 (left mouse button). btn -- number of the mouse-button defaults to 1 (left mouse button).
add -- True or False. If True, new binding will be added, otherwise add -- True or False. If True, new binding will be added, otherwise
it will replace a former binding. it will replace a former binding.
...@@ -3439,7 +3439,7 @@ class RawTurtle(TPen, TNavigator): ...@@ -3439,7 +3439,7 @@ class RawTurtle(TPen, TNavigator):
Arguments: Arguments:
fun -- a function with two arguments, to which will be assigned fun -- a function with two arguments, to which will be assigned
the coordinates of the clicked point on the canvas. the coordinates of the clicked point on the canvas.
num -- number of the mouse-button defaults to 1 (left mouse button). btn -- number of the mouse-button defaults to 1 (left mouse button).
Example (for a MyTurtle instance named joe): Example (for a MyTurtle instance named joe):
>>> class MyTurtle(Turtle): >>> class MyTurtle(Turtle):
...@@ -3464,7 +3464,7 @@ class RawTurtle(TPen, TNavigator): ...@@ -3464,7 +3464,7 @@ class RawTurtle(TPen, TNavigator):
Arguments: Arguments:
fun -- a function with two arguments, to which will be assigned fun -- a function with two arguments, to which will be assigned
the coordinates of the clicked point on the canvas. the coordinates of the clicked point on the canvas.
num -- number of the mouse-button defaults to 1 (left mouse button). btn -- number of the mouse-button defaults to 1 (left mouse button).
Every sequence of mouse-move-events on a turtle is preceded by a Every sequence of mouse-move-events on a turtle is preceded by a
mouse-click event on that turtle. mouse-click event on that turtle.
......
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