def UnhookKeyboard(self): '''Stops watching for keyboard events.''' if self.keyboard_hook: cpyHook.cUnhook(HookConstants.WH_KEYBOARD_LL) self.keyboard_hook = False
def UnhookMouse(self): '''Stops watching for mouse events.''' if self.mouse_hook: cpyHook.cUnhook(HookConstants.WH_MOUSE_LL) self.mouse_hook = False