Skip to content

Commit 8856246

Browse files
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
(cherry picked from commit 4edeaea) Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <[email protected]>
1 parent 46fa7a6 commit 8856246

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
@@ -1310,7 +1310,7 @@ Using events
13101310

13111311
:param fun: a function with two arguments which will be called with the
13121312
coordinates of the clicked point on the canvas
1313-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1313+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
13141314
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
13151315
added, otherwise it will replace a former binding
13161316

@@ -1331,7 +1331,7 @@ Using events
13311331

13321332
:param fun: a function with two arguments which will be called with the
13331333
coordinates of the clicked point on the canvas
1334-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1334+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
13351335
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
13361336
added, otherwise it will replace a former binding
13371337

@@ -1355,7 +1355,7 @@ Using events
13551355

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

@@ -1736,7 +1736,7 @@ Using screen events
17361736

17371737
:param fun: a function with two arguments which will be called with the
17381738
coordinates of the clicked point on the canvas
1739-
:param num: number of the mouse-button, defaults to 1 (left mouse button)
1739+
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
17401740
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
17411741
added, otherwise it will replace a former binding
17421742

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)