def get_size(self):
        """Return the window actual size as a tuple (width, height)."""
        flags, showCmd, ptMin, ptMax, rect = win32gui.GetWindowPlacement(self.base_handler_id)
        w = rect[2] - rect[0]
        h = rect[3] - rect[1]
        return w, h
Return the window actual size as a tuple (width, height).
mcplatform.py