mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
Change bind() to tag_bind() so it works again.
This commit is contained in:
parent
3bbeb7a318
commit
5edcf34fac
|
@ -19,8 +19,8 @@ def mouseDown(self, event):
|
|||
event.x - 10, event.y -10, event.x +10, event.y + 10,
|
||||
fill="green", tags=CURRENT)
|
||||
|
||||
self.draw.bind(fred, "<Any-Enter>", self.mouseEnter)
|
||||
self.draw.bind(fred, "<Any-Leave>", self.mouseLeave)
|
||||
self.draw.tag_bind(fred, "<Any-Enter>", self.mouseEnter)
|
||||
self.draw.tag_bind(fred, "<Any-Leave>", self.mouseLeave)
|
||||
|
||||
self.lastx = event.x
|
||||
self.lasty = event.y
|
||||
|
|
Loading…
Reference in a new issue