]> granicus.if.org Git - python/commitdiff
Fix typos (need to use tag_bind, not bind).
authorGuido van Rossum <guido@python.org>
Fri, 24 May 1996 18:40:46 +0000 (18:40 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 24 May 1996 18:40:46 +0000 (18:40 +0000)
Demo/tkinter/matt/canvas-moving-w-mouse.py

index fab480b782246694a8f06b55d1351006ccc2c67e..f07e6589dd18b384d7c10d38af9aee0a730057d3 100644 (file)
@@ -44,9 +44,8 @@ class Test(Frame):
        fred = self.draw.create_oval(0, 0, 20, 20,
                                     {"fill" : "green", "tag" : "selected"})
 
-       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)
 
        Widget.bind(self.draw, "<1>", self.mouseDown)
        Widget.bind(self.draw, "<B1-Motion>", self.mouseMove)