def resize(self, width, height):
self._width = width<EOL>self._height = height<EOL>for item in self._rbuttons:<EOL><INDENT>item.width = width<EOL><DEDENT>if len(self._rbuttons) > <NUM_LIT:0>:<EOL><INDENT>button_height = height<EOL>if isinstance(height, int):<EOL><INDENT>if height % len(self._rbuttons) != <NUM_LIT:0>:<EOL><INDENT>button_height = int(round(height / len(self._rbuttons)))<EOL>new_height = button_height * len(self._rbuttons)<EOL>utils.error_format("<STR_LIT>".format(height, len(self._rbuttons), new_height))<EOL><DEDENT>else:<EOL><INDENT>button_height = int(height / len(self._rbuttons))<EOL><DEDENT><DEDENT>for item in self._rbuttons:<EOL><INDENT>item.height = button_height<EOL><DEDENT><DEDENT>super(ButtonGroup, self).resize(width, height)<EOL>
Resizes the widget.

:param int width:
    The width of the widget.

:param int height:
    The height of the widget.