

def map(self, style, query_opt=None, **kw):
    'Query or sets dynamic values of the specified option(s) in\n        style.\n\n        Each key in kw is an option and each value should be a list or a\n        tuple (usually) containing statespecs grouped in tuples, or list,\n        or something else of your preference. A statespec is compound of\n        one or more states and then a value.'
    if (query_opt is not None):
        return _list_from_statespec(self.tk.splitlist(self.tk.call(self._name, 'map', style, ('-%s' % query_opt))))
    return _splitdict(self.tk, self.tk.call(self._name, 'map', style, *_format_mapdict(kw)), conv=_tclobj_to_py)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Style.map/original