

def get_position(self):
    'Returns tuple of 4 numbers: (x, y)s of top-left and bottom-right corners'
    rect = _Rect()
    GetWindowRect(self._hwnd, ctypes.pointer(rect))
    return (rect.left, rect.top, rect.right, rect.bottom)

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/_window_win.py Window.get_position/original