Commit faefe4cb authored by Guido van Rossum's avatar Guido van Rossum

Fix typos (need to use tag_bind, not bind).

parent a4916fa5
...@@ -44,9 +44,8 @@ class Test(Frame): ...@@ -44,9 +44,8 @@ class Test(Frame):
fred = self.draw.create_oval(0, 0, 20, 20, fred = self.draw.create_oval(0, 0, 20, 20,
{"fill" : "green", "tag" : "selected"}) {"fill" : "green", "tag" : "selected"})
self.draw.bind(fred, "<Any-Enter>", self.mouseEnter) self.draw.tag_bind(fred, "<Any-Enter>", self.mouseEnter)
self.draw.bind(fred, "<Any-Leave>", self.mouseLeave) self.draw.tag_bind(fred, "<Any-Leave>", self.mouseLeave)
Widget.bind(self.draw, "<1>", self.mouseDown) Widget.bind(self.draw, "<1>", self.mouseDown)
Widget.bind(self.draw, "<B1-Motion>", self.mouseMove) Widget.bind(self.draw, "<B1-Motion>", self.mouseMove)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment