diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 2025ba84b8d..11dae120d4d 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -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."""