Skip to content

Commit 4edeaea

Browse files
srinivasreddyserhiy-storchaka
authored andcommitted
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
1 parent a48e0eb commit 4edeaea

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Doc/library/turtle.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ Using events
13601360

13611361
:param fun: a function with two arguments which will be called with the
13621362
coordinates of the clicked point on the canvas
1363-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1363+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
13641364
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
13651365
added, otherwise it will replace a former binding
13661366

@@ -1382,7 +1382,7 @@ Using events
13821382

13831383
:param fun: a function with two arguments which will be called with the
13841384
coordinates of the clicked point on the canvas
1385-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1385+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
13861386
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
13871387
added, otherwise it will replace a former binding
13881388

@@ -1407,7 +1407,7 @@ Using events
14071407

14081408
:param fun: a function with two arguments which will be called with the
14091409
coordinates of the clicked point on the canvas
1410-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1410+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
14111411
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
14121412
added, otherwise it will replace a former binding
14131413

@@ -1805,7 +1805,7 @@ Using screen events
18051805

18061806
:param fun: a function with two arguments which will be called with the
18071807
coordinates of the clicked point on the canvas
1808-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1808+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
18091809
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
18101810
added, otherwise it will replace a former binding
18111811

Lib/turtle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ def onclick(self, fun, btn=1, add=None):
13521352
Arguments:
13531353
fun -- a function with two arguments, the coordinates of the
13541354
clicked point on the canvas.
1355-
num -- the number of the mouse-button, defaults to 1
1355+
btn -- the number of the mouse-button, defaults to 1
13561356
13571357
Example (for a TurtleScreen instance named screen)
13581358
@@ -3526,7 +3526,7 @@ def onclick(self, fun, btn=1, add=None):
35263526
Arguments:
35273527
fun -- a function with two arguments, to which will be assigned
35283528
the coordinates of the clicked point on the canvas.
3529-
num -- number of the mouse-button defaults to 1 (left mouse button).
3529+
btn -- number of the mouse-button defaults to 1 (left mouse button).
35303530
add -- True or False. If True, new binding will be added, otherwise
35313531
it will replace a former binding.
35323532
@@ -3547,7 +3547,7 @@ def onrelease(self, fun, btn=1, add=None):
35473547
Arguments:
35483548
fun -- a function with two arguments, to which will be assigned
35493549
the coordinates of the clicked point on the canvas.
3550-
num -- number of the mouse-button defaults to 1 (left mouse button).
3550+
btn -- number of the mouse-button defaults to 1 (left mouse button).
35513551
35523552
Example (for a MyTurtle instance named joe):
35533553
>>> class MyTurtle(Turtle):
@@ -3572,7 +3572,7 @@ def ondrag(self, fun, btn=1, add=None):
35723572
Arguments:
35733573
fun -- a function with two arguments, to which will be assigned
35743574
the coordinates of the clicked point on the canvas.
3575-
num -- number of the mouse-button defaults to 1 (left mouse button).
3575+
btn -- number of the mouse-button defaults to 1 (left mouse button).
35763576
35773577
Every sequence of mouse-move-events on a turtle is preceded by a
35783578
mouse-click event on that turtle.

0 commit comments

Comments
 (0)