(self, master, variable, default=None, *values, **kwargs)
Construct a themed OptionMenu widget with master as the parent,
        the resource textvariable set to variable, the initially selected
        value specified by the default parameter, the menu values given by
        *values and additional keywords.

        WIDGET-SPECIFIC OPTIONS

            style: stylename
                Menubutton style.
            direction: 'above', 'below', 'left', 'right', or 'flush'
                Menubutton direction.
            command: callback
                A callback that will be invoked after selecting an item.
Construct a themed OptionMenu widget with master as the parent,
        the resource textvariable set to variable, the initially selected
        value specified by the default parameter, the menu values given by
        *values and additional keywords.
Construct a themed OptionMenu widget with master as the parent the resource textvariable set to variable the initially selected value specified by the default parameter the menu values given by * values and additional keywords .
def __init__(self, master, variable, default=None, *values, **kwargs):
        """Construct a themed OptionMenu widget with master as the parent,
        the resource textvariable set to variable, the initially selected
        value specified by the default parameter, the menu values given by
        *values and additional keywords.

        WIDGET-SPECIFIC OPTIONS

            style: stylename
                Menubutton style.
            direction: 'above', 'below', 'left', 'right', or 'flush'
                Menubutton direction.
            command: callback
                A callback that will be invoked after selecting an item.
        """
        kw = {'textvariable': variable, 'style': kwargs.pop('style', None),
              'direction': kwargs.pop('direction', None)}
        Menubutton.__init__(self, master, **kw)
        self['menu'] = tkinter.Menu(self, tearoff=False)

        self._variable = variable
        self._callback = kwargs.pop('command', None)
        if kwargs:
            raise tkinter.TclError('unknown option -%s' % (
                next(iter(kwargs.keys()))))

        self.set_menu(default, *values)
def __init__ ( self , master , variable , default = None , * values , * * kwargs ) : kw = { 'textvariable' : variable , 'style' : kwargs . pop ( 'style' , None ) , 'direction' : kwargs . pop ( 'direction' , None ) } Menubutton . __init__ ( self , master , * * kw ) self [ 'menu' ] = tkinter . Menu ( self , tearoff = False ) self . _variable = variable self . _callback = kwargs . pop ( 'command' , None ) if kwargs : raise tkinter . TclError ( 'unknown option -%s' % ( next ( iter ( kwargs . keys ( ) ) ) ) ) self . set_menu ( default , * values )