Patch #749191: Delete commands in after_cancel. Will backport to 2.2.

This commit is contained in:
Martin v. Löwis 2003-06-07 19:52:38 +00:00
parent 7890c26508
commit 0f9e525bdf

View file

@ -474,6 +474,12 @@ class Misc:
Identifier returned by after or after_idle must be Identifier returned by after or after_idle must be
given as first parameter.""" given as first parameter."""
try:
(script, type) = self.tk.splitlist(
self.tk.call('after', 'info', id))
self.deletecommand(script)
except TclError:
pass
self.tk.call('after', 'cancel', id) self.tk.call('after', 'cancel', id)
def bell(self, displayof=0): def bell(self, displayof=0):
"""Ring a display's bell.""" """Ring a display's bell."""