summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-24 13:39:51 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-24 13:39:51 (GMT)
commit5edcf34fac3368cfa671b2fd9e1df2c1f47b4f2c (patch)
treee669ac9020cb03e7ee4ac2d86dabd056bd2ec3f5 /Demo
parent3bbeb7a318d10652f2113d00419cc8f19499b9f0 (diff)
downloadcpython-5edcf34fac3368cfa671b2fd9e1df2c1f47b4f2c.zip
cpython-5edcf34fac3368cfa671b2fd9e1df2c1f47b4f2c.tar.gz
cpython-5edcf34fac3368cfa671b2fd9e1df2c1f47b4f2c.tar.bz2
Change bind() to tag_bind() so it works again.
Diffstat (limited to 'Demo')
-rw-r--r--Demo/tkinter/matt/canvas-moving-or-creating.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/tkinter/matt/canvas-moving-or-creating.py b/Demo/tkinter/matt/canvas-moving-or-creating.py
index f14a6dc..74729a6 100644
--- a/Demo/tkinter/matt/canvas-moving-or-creating.py
+++ b/Demo/tkinter/matt/canvas-moving-or-creating.py
@@ -19,8 +19,8 @@ class Test(Frame):
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