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.
This commit is contained in:
parent
98b6246c0c
commit
0c92000b7a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue