MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / eventfun

Method eventfun

Python/Turtle.py:511–514  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

509 self.cv.tag_unbind(item, "<Button-%s>" % num)
510 else:
511 def eventfun(event):
512 x, y = (self.cv.canvasx(event.x)/self.xscale,
513 -self.cv.canvasy(event.y)/self.yscale)
514 fun(x, y)
515 self.cv.tag_bind(item, "<Button-%s>" % num, eventfun, add)
516
517 def _onrelease(self, item, fun, num=1, add=None):

Callers

nothing calls this directly

Calls 1

funFunction · 0.50

Tested by

no test coverage detected