Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e9dadc

Browse files
committed
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).
1 parent b738d26 commit 6e9dadc

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Lib/lib-tk/Tkinter.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,16 +1236,7 @@ def create_window(self, *args, **kw):
12361236
def dchars(self, *args):
12371237
self.tk.call((self._w, 'dchars') + args)
12381238
def delete(self, *args):
1239-
self._delete_bindings(args)
12401239
self.tk.call((self._w, 'delete') + args)
1241-
def _delete_bindings(self, args):
1242-
for tag in args:
1243-
for a in self.tag_bind(tag):
1244-
b = self.tag_bind(tag, a)
1245-
c = _string.split(b, '[')[1]
1246-
d = _string.split(c)[0]
1247-
print "deletecommand(%s)" % `d`
1248-
self.deletecommand(d)
12491240
def dtag(self, *args):
12501241
self.tk.call((self._w, 'dtag') + args)
12511242
def find(self, *args):

0 commit comments

Comments
 (0)