mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
This commit is contained in:
parent
a48e0eb967
commit
4edeaeac4c
2 changed files with 8 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue