Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4edeaeac
Commit
4edeaeac
authored
Nov 16, 2018
by
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
Committed by
Serhiy Storchaka
Nov 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
parent
a48e0eb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/library/turtle.rst
Doc/library/turtle.rst
+4
-4
Lib/turtle.py
Lib/turtle.py
+4
-4
No files found.
Doc/library/turtle.rst
View file @
4edeaeac
...
...
@@ -1360,7 +1360,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
...
...
@@ -1382,7 +1382,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
...
...
@@ -1407,7 +1407,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
...
...
@@ -1805,7 +1805,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
...
...
Lib/turtle.py
View file @
4edeaeac
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment