Kaydet (Commit) 0f9e525b authored tarafından Martin v. Löwis's avatar Martin v. Löwis

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

üst 7890c265
......@@ -474,6 +474,12 @@ class Misc:
Identifier returned by after or after_idle must be
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)
def bell(self, displayof=0):
"""Ring a display's bell."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment