def __init__(<EOL>self,<EOL>master,<EOL>options=[],<EOL>selected=None,<EOL>horizontal=False,<EOL>command=None,<EOL>grid=None,<EOL>align=None,<EOL>args=None,<EOL>visible=True,<EOL>enabled=None,<EOL>width=None,<EOL>height=None):
description = "<STR_LIT>" + str(selected) + "<STR_LIT>"<EOL>self._rbuttons = []   <EOL>self._text_size = None<EOL>self._font = None<EOL>self._horizontal = horizontal<EOL>tk = Frame(master.tk)<EOL>self._selected = StringVar(master=tk.winfo_toplevel())<EOL>super(ButtonGroup, self).__init__(master, tk, description, "<STR_LIT>", grid, align, visible, enabled, width, height)<EOL>self._options = []<EOL>for option in options:<EOL><INDENT>self._options.append(self._parse_option(option))<EOL><DEDENT>self._refresh_options()<EOL>if selected is None and len(self._options) > <NUM_LIT:0>:<EOL><INDENT>self.value = self._options[<NUM_LIT:0>][<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>self.value = selected<EOL><DEDENT>self.update_command(command, args)<EOL>option_tks = [option.tk for option in self._rbuttons]<EOL>self._events = EventManager(self, self.tk, *option_tks)<EOL>self.resize(width, height)<EOL>
Creates a ButtonGroup

:param Container master:
    The Container (App, Box, etc) the ButtonGroup will belong too.

:param List option:
    A list of options to append to the ButtonGroup. If a 2D list is
    specified, the first element is the text, the second is the value,
    defaults to an empty list.

:param string selected:
    The item in the ButtonGroup to select, defaults to `None`.

:param string horizontal:
    If the ButtonGroup is to be displayed horizontally, defaults to
    `True`.

:param callback command:
    The callback function to call when the ButtonGroup changes,
    defaults to `None`.

:param List grid:
    Grid co-ordinates for the widget, required if the master layout
    is 'grid', defaults to `None`.

:param string align:
    How to align the widget within the grid, defaults to None.

:param callback args:
    A list of arguments to pass to the widgets `command`, defaults to
    `None`.

:param bool visible:
    If the widget should be visible, defaults to `True`.

:param bool enabled:
    If the widget should be enabled, defaults to `None`. If `None`
    the value is inherited from the master.

:param int width:
    The starting width of the widget. Defaults to `None` and will auto
    size.

:param int height:
    The starting height of the widget. Defaults to `None` and will auto
    size.