(self, default=None, *values)
Build a new menu of radiobuttons with *values and optionally
        a default value.
Build a new menu of radiobuttons with *values and optionally
        a default value.
Build a new menu of radiobuttons with * values and optionally a default value .
def set_menu(self, default=None, *values):
        """Build a new menu of radiobuttons with *values and optionally
        a default value."""
        menu = self['menu']
        menu.delete(0, 'end')
        for val in values:
            menu.add_radiobutton(label=val,
                command=(
                    None if self._callback is None
                    else lambda val=val: self._callback(val)
                ),
                variable=self._variable)

        if default:
            self._variable.set(default)
def set_menu ( self , default = None , * values ) : menu = self [ 'menu' ] menu . delete ( 0 , 'end' ) for val in values : menu . add_radiobutton ( label = val , command = ( None if self . _callback is None else lambda val = val : self . _callback ( val ) ) , variable = self . _variable ) if default : self . _variable . set ( default )