diff options
author | Guido van Rossum <guido@python.org> | 1996-07-21 02:19:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-07-21 02:19:32 (GMT) |
commit | 421bb0e389ad9c0c3353dfd89fd8ef4e4756d1cb (patch) | |
tree | 7da6d75b580d0fb13736cd655019d3a62902294f /Lib/tkinter/Canvas.py | |
parent | 6d6a15bab20b27f739d5c9a44903a4e420ce3af7 (diff) | |
download | cpython-421bb0e389ad9c0c3353dfd89fd8ef4e4756d1cb.zip cpython-421bb0e389ad9c0c3353dfd89fd8ef4e4756d1cb.tar.gz cpython-421bb0e389ad9c0c3353dfd89fd8ef4e4756d1cb.tar.bz2 |
fix canvas bind commands
Diffstat (limited to 'Lib/tkinter/Canvas.py')
-rwxr-xr-x | Lib/tkinter/Canvas.py | 2 |
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 = ()): |