

def position(x=None, y=None):
    'Returns the current xy coordinates of the mouse cursor as a two-integer\n    tuple.\n\n    Args:\n      x (int, None, optional) - If not None, this argument overrides the x in\n        the return value.\n      y (int, None, optional) - If not None, this argument overrides the y in\n        the return value.\n\n    Returns:\n      (x, y) tuple of the current xy coordinates of the mouse cursor.\n    '
    (posx, posy) = platformModule._position()
    posx = int(posx)
    posy = int(posy)
    if (x is not None):
        posx = int(x)
    if (y is not None):
        posy = int(y)
    return (posx, posy)

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py position/original