def set_size(self, w, h):
        """ Sets the rectangle size.

        Args:
            w (int): width of the rectangle
            h (int): height of the rectangle
        """
        self.attributes['width'] = str(w)
        self.attributes['height'] = str(h)
Sets the rectangle size.

        Args:
            w (int): width of the rectangle
            h (int): height of the rectangle