summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-16 13:56:33 (GMT)
committerGitHub <noreply@github.com>2018-11-16 13:56:33 (GMT)
commit8856246c41b0663bfe8d3af7d52a7c337e25572d (patch)
tree6fb762fdcce68e2cde13e5ea0b434c37571f87e9
parent46fa7a60e08fc7486ecab726af93fa2cfe225305 (diff)
downloadcpython-8856246c41b0663bfe8d3af7d52a7c337e25572d.zip
cpython-8856246c41b0663bfe8d3af7d52a7c337e25572d.tar.gz
cpython-8856246c41b0663bfe8d3af7d52a7c337e25572d.tar.bz2
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
(cherry picked from commit 4edeaeac4c194ba5d09187640b5cfca5e03be617) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
-rw-r--r--Doc/library/turtle.rst8
-rw-r--r--Lib/turtle.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index 2b5d3e5..8135c93 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -1310,7 +1310,7 @@ Using events
:param fun: a function with two arguments which will be called with the
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
added, otherwise it will replace a former binding
@@ -1331,7 +1331,7 @@ Using events
:param fun: a function with two arguments which will be called with the
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
added, otherwise it will replace a former binding
@@ -1355,7 +1355,7 @@ Using events
:param fun: a function with two arguments which will be called with the
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
added, otherwise it will replace a former binding
@@ -1736,7 +1736,7 @@ Using screen events
:param fun: a function with two arguments which will be called with the
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
added, otherwise it will replace a former binding
diff --git a/Lib/turtle.py b/Lib/turtle.py
index 8036b7f..f3b92e3 100644
--- a/Lib/turtle.py
+++ b/Lib/turtle.py
@@ -1352,7 +1352,7 @@ class TurtleScreen(TurtleScreenBase):
Arguments:
fun -- a function with two arguments, the coordinates of the
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)
@@ -3526,7 +3526,7 @@ class RawTurtle(TPen, TNavigator):
Arguments:
fun -- a function with two arguments, to which will be assigned
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
it will replace a former binding.
@@ -3547,7 +3547,7 @@ class RawTurtle(TPen, TNavigator):
Arguments:
fun -- a function with two arguments, to which will be assigned
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):
>>> class MyTurtle(Turtle):
@@ -3572,7 +3572,7 @@ class RawTurtle(TPen, TNavigator):
Arguments:
fun -- a function with two arguments, to which will be assigned
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
mouse-click event on that turtle.