summaryrefslogtreecommitdiffstats
path: root/Lib/turtle.py
diff options
context:
space:
mode:
authorSrinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>2018-11-16 13:28:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-16 13:28:51 (GMT)
commit4edeaeac4c194ba5d09187640b5cfca5e03be617 (patch)
treed6707b7eae1a7d764fae1564e43592781ffb71c0 /Lib/turtle.py
parenta48e0eb9673ec96d1decb8a230331533cfb6138b (diff)
downloadcpython-4edeaeac4c194ba5d09187640b5cfca5e03be617.zip
cpython-4edeaeac4c194ba5d09187640b5cfca5e03be617.tar.gz
cpython-4edeaeac4c194ba5d09187640b5cfca5e03be617.tar.bz2
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
Diffstat (limited to 'Lib/turtle.py')
-rw-r--r--Lib/turtle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py
index 9db564b..47a94f2 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.