

def __init__(self, master, variable, default=None, *values, **kwargs):
    "Construct a themed OptionMenu widget with master as the parent,\n        the resource textvariable set to variable, the initially selected\n        value specified by the default parameter, the menu values given by\n        *values and additional keywords.\n\n        WIDGET-SPECIFIC OPTIONS\n\n            style: stylename\n                Menubutton style.\n            direction: 'above', 'below', 'left', 'right', or 'flush'\n                Menubutton direction.\n            command: callback\n                A callback that will be invoked after selecting an item.\n        "
    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 values:
        raise Tkinter.TclError(('unknown option -%s' % kwargs.iterkeys().next()))
    self.set_menu(default, *values)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py OptionMenu.__init__/VarMisuse@109/316 `kwargs`->`values`