Commits

Anonymous committed dba7116

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.

Comments (0)

Files changed (1)

Lib/lib-tk/Tkinter.py

 				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)