code: def set_desired_size(self, width, height):
          
          self._desired_size = (width, height)
          if not self._imgwin_set:
              self.set_window_size(width, height)
docs: See :meth:`set_window_size`.