def _format_mapdict(mapdict, script=False):

    opts = []
    for opt, value in mapdict.iteritems():
        opts.extend(("-%s" % opt,
                     _format_optvalue(_mapdict_values(value), script)))

    return _flatten(opts)
Formats mapdict to pass it to tk.call.
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py/_format_mapdict