diff options
author | Guido van Rossum <guido@python.org> | 1999-04-08 14:46:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-08 14:46:06 (GMT) |
commit | 6e9dadc1da632f884dd386fe9febb3a6be34f576 (patch) | |
tree | 72298328dee6fdfee6008ce95cb29eedc700df46 /Lib/lib-tk/Tkinter.py | |
parent | b738d26e2d0052878fd9cf1b772e05f5a48640ce (diff) | |
download | cpython-6e9dadc1da632f884dd386fe9febb3a6be34f576.zip cpython-6e9dadc1da632f884dd386fe9febb3a6be34f576.tar.gz cpython-6e9dadc1da632f884dd386fe9febb3a6be34f576.tar.bz2 |
Delete an accidentally checked-in feature that actually broke more
than was worth it: when deleting a canvas item, it would try to
automatically delete the bindings for that item. Since there's
nothing that says you can't reuse the tag and still have the bindings,
this is not correct. Also, it broke at least one demo
(Demo/tkinter/matt/rubber-band-box-demo-1.py).
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 7e45adb..998dd0d 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1236,16 +1236,7 @@ class Canvas(Widget): def dchars(self, *args): self.tk.call((self._w, 'dchars') + args) def delete(self, *args): - self._delete_bindings(args) self.tk.call((self._w, 'delete') + args) - def _delete_bindings(self, args): - for tag in args: - for a in self.tag_bind(tag): - b = self.tag_bind(tag, a) - c = _string.split(b, '[')[1] - d = _string.split(c)[0] - print "deletecommand(%s)" % `d` - self.deletecommand(d) def dtag(self, *args): self.tk.call((self._w, 'dtag') + args) def find(self, *args): |