'Query or sets dynamic values of the specified option(s) in
style.
Each key in kw is an option and each value should be a list or a
tuple (usually) containing statespecs grouped in tuples, or list,
or something else of your preference. A statespec is compound of
one or more states and then a value.'

def map(self, style, query_opt=None, **kw):

    if (query_opt is not None):
        return _list_from_statespec(self.tk.call(self._name, 'map', style, ('-%s' % query_opt)))
    else:
        return _dict_from_tcltuple(self.tk.call(self._name, 'map', style, *_format_mapdict(kw)))
