summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r--Lib/lib-tk/Tkinter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 4bcb632..ae6cfb5 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -221,7 +221,10 @@ class Misc:
try:
apply(func, args)
finally:
- self.deletecommand(tmp[0])
+ try:
+ self.deletecommand(tmp[0])
+ except TclError:
+ pass
name = self._register(callit)
tmp.append(name)
return self.tk.call('after', ms, name)