Kaydet (Commit) 0c92000b authored tarafından Guido van Rossum's avatar Guido van Rossum

Ignore the TclError exception raised when deleting the registration

for callit, used by the after() command.  This can happen when the
callback deletes the window.
üst 98b6246c
......@@ -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)
......
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