summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-24 18:40:46 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-24 18:40:46 (GMT)
commitfaefe4cb607575754b10a1a683061dbfe19b691c (patch)
treebdd1eabd96002e8f8c83efa0e4281e6f15e8f5a0
parenta4916fa54f007ec9f8b376e087b6a4493122d277 (diff)
downloadcpython-faefe4cb607575754b10a1a683061dbfe19b691c.zip
cpython-faefe4cb607575754b10a1a683061dbfe19b691c.tar.gz
cpython-faefe4cb607575754b10a1a683061dbfe19b691c.tar.bz2
Fix typos (need to use tag_bind, not bind).
-rw-r--r--Demo/tkinter/matt/canvas-moving-w-mouse.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/tkinter/matt/canvas-moving-w-mouse.py b/Demo/tkinter/matt/canvas-moving-w-mouse.py
index fab480b..f07e658 100644
--- a/Demo/tkinter/matt/canvas-moving-w-mouse.py
+++ b/Demo/tkinter/matt/canvas-moving-w-mouse.py
@@ -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)