python mouse how to get mouse event code example Example: get mouse postition python >>> import pyautogui >>> pyautogui.position()