

def _format_mapdict(mapdict, script=False):
    "Formats mapdict to pass it to tk.call.\n\n    E.g. (script=False):\n      {'expand': [('active', 'selected', 'grey'), ('focus', [1, 2, 3, 4])]}\n\n      returns:\n\n      ('-expand', '{active selected} grey focus {1, 2, 3, 4}')"
    opts = []
    for (opt, value) in mapdict.iteritems():
        opts.extend((('-%s' % opt), _format_optvalue(_mapdict_values(value), script)))
    return _flatten(opts)

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