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