From 5edcf34fac3368cfa671b2fd9e1df2c1f47b4f2c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 24 Sep 1997 13:39:51 +0000 Subject: [PATCH] Change bind() to tag_bind() so it works again. --- Demo/tkinter/matt/canvas-moving-or-creating.py | 4 ++-- 1 file 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 f14a6dcb68f..74729a652b2 100644 --- a/Demo/tkinter/matt/canvas-moving-or-creating.py +++ b/Demo/tkinter/matt/canvas-moving-or-creating.py @@ -19,8 +19,8 @@ def mouseDown(self, event): event.x - 10, event.y -10, event.x +10, event.y + 10, fill="green", tags=CURRENT) - self.draw.bind(fred, "", self.mouseEnter) - self.draw.bind(fred, "", self.mouseLeave) + self.draw.tag_bind(fred, "", self.mouseEnter) + self.draw.tag_bind(fred, "", self.mouseLeave) self.lastx = event.x self.lasty = event.y