more strict unbinding
@@ -1207,8 +1207,8 @@ class Workbench(tk.Tk):
if sequence.startswith("<"):
tk.Tk.unbind(self, sequence, funcid=funcid)
else:
- if (sequence in self._event_handlers
- and funcid in self._event_handlers[sequence]):
+ assert sequence in self._event_handlers
+ assert funcid in self._event_handlers[sequence]
self._event_handlers[sequence].remove(funcid)
