def get_positions(self): x, y = pyautogui.position() # this returns a tupple as in the x and the y return x, y