def click(self, button="LEFT", y=None, x=None): pyautogui.moveTo(x, y) pyautogui.click(button=self.mouse_buttons.get(button, "left"))