def _get_rect(self): ret = win32gui.GetWindowRect(self._hwnd) return Rect(ret[0], ret[1], ret[2] - ret[0], ret[3] - ret[1])