Message329932
I noticed a slight mismatch in the parameter documentation for one of turtle's functions. onclick() accepts the parameters (fun, btn, add), but the documentation describes the parameters (fun, num, add). A minor issue, to be sure, but I wanted to point it out since I just noticed it. I'm using Python 3.7.1 but I suspect it's not isolated to that.
>>> help(turtle.Turtle().onclick)
Help on method onclick in module turtle:
onclick(fun, btn=1, add=None) method of turtle.Turtle instance
Bind fun to mouse-click event on this turtle on canvas.
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).
add -- True or False. If True, new binding will be added, otherwise
it will replace a former binding. |
|
Date |
User |
Action |
Args |
2018-11-14 20:40:45 | Shane Smith | set | recipients:
+ Shane Smith, docs@python |
2018-11-14 20:40:45 | Shane Smith | set | messageid: <1542228045.84.0.788709270274.issue35250@psf.upfronthosting.co.za> |
2018-11-14 20:40:45 | Shane Smith | link | issue35250 messages |
2018-11-14 20:40:45 | Shane Smith | create | |
|