def get_location(self): rect = RECT() _user32.GetClientRect(self._hwnd, byref(rect)) point = POINT() point.x = rect.left point.y = rect.top _user32.ClientToScreen(self._hwnd, byref(point)) return point.x, point.y
def get_location(self): rect = RECT() _user32.GetClientRect(self._hwnd, byref(rect)) _user32.ClientToScreen(self._hwnd, byref(rect)) return rect.left, rect.top