Skip to content

Commit

Permalink
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-1…
Browse files Browse the repository at this point in the history
…0565)

(cherry picked from commit 4edeaea)

Co-authored-by: Srinivas  Thatiparthy (శ్రీనివాస్  తాటిపర్తి) <thatiparthysreenivas@gmail.com>
  • Loading branch information
miss-islington and srinivasreddy committed Nov 16, 2018
1 parent 46fa7a6 commit 8856246
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions Lib/turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ def onclick(self, fun, btn=1, add=None):
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)
Expand Down Expand Up @@ -3526,7 +3526,7 @@ def onclick(self, fun, btn=1, add=None):
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.
Expand All @@ -3547,7 +3547,7 @@ def onrelease(self, fun, btn=1, add=None):
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):
Expand All @@ -3572,7 +3572,7 @@ def ondrag(self, fun, btn=1, add=None):
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.
Expand Down

0 comments on commit 8856246

Please sign in to comment.