summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/Canvas.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tkinter/Canvas.py')
-rwxr-xr-xLib/tkinter/Canvas.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/Canvas.py b/Lib/tkinter/Canvas.py
index 1e4a5c8..cba22d1 100755
--- a/Lib/tkinter/Canvas.py
+++ b/Lib/tkinter/Canvas.py
@@ -52,7 +52,7 @@ class CanvasItem:
x1, y1, x2, y2 = self.canvas.bbox(self.id)
return (x1, y1), (x2, y2)
def bind(self, sequence=None, command=None):
- return self.canvas.bind(self.id, sequence, command)
+ return self.canvas.tag_bind(self.id, sequence, command)
def config(self, cnf=None):
return self.canvas.itemconfig(self.id, cnf)
def coords(self, pts = ()):