Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faefe4c

Browse files
committed
Fix typos (need to use tag_bind, not bind).
1 parent a4916fa commit faefe4c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Demo/tkinter/matt/canvas-moving-w-mouse.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ def createWidgets(self):
4444
fred = self.draw.create_oval(0, 0, 20, 20,
4545
{"fill" : "green", "tag" : "selected"})
4646

47-
self.draw.bind(fred, "<Any-Enter>", self.mouseEnter)
48-
self.draw.bind(fred, "<Any-Leave>", self.mouseLeave)
49-
47+
self.draw.tag_bind(fred, "<Any-Enter>", self.mouseEnter)
48+
self.draw.tag_bind(fred, "<Any-Leave>", self.mouseLeave)
5049

5150
Widget.bind(self.draw, "<1>", self.mouseDown)
5251
Widget.bind(self.draw, "<B1-Motion>", self.mouseMove)

0 commit comments

Comments
 (0)