def cleanup(self): KeyboardHelper.cleanup(self) if self._keymap_change_handler_id: try: self._keymap.disconnect(self._keymap_change_handler_id) self._keymap_change_handler_id = None except Exception as e: log.warn("failed to disconnect keymap change handler: %s", e)
def cleanup(self): KeyboardHelper.cleanup(self) if self._keymap_change_handler_id: try: self._keymap.disconnect(self._keymap_change_handler_id) self._keymap_change_handler_id = None except Exception as e: log.warn("failed to disconnect keymap change handler: %s", e)