MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / onclick

Method onclick

Lib/lib-tk/turtle.py:1296–1312  ·  view source on GitHub ↗

Bind fun to mouse-click event on canvas. 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 Example (for a TurtleScreen instance named screen

(self, fun, btn=1, add=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

clearMethod · 0.95

Calls 1

_onscreenclickMethod · 0.80

Tested by

no test coverage detected