]> granicus.if.org Git - python/commitdiff
Delete an accidentally checked-in feature that actually broke more
authorGuido van Rossum <guido@python.org>
Thu, 8 Apr 1999 14:46:06 +0000 (14:46 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Apr 1999 14:46:06 +0000 (14:46 +0000)
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).

Lib/lib-tk/Tkinter.py

index 7e45adb81eee7cea7bf48515921e0195de2330b4..998dd0d95ab246ba54ea0b5e47150ece79a06944 100644 (file)
@@ -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):