

def _val_or_dict(tk, options, *args):
    "Format options then call Tk command with args and options and return\n    the appropriate result.\n\n    If no option is specified, a dict is returned. If a option is\n    specified with the None value, the value for that option is returned.\n    Otherwise, the function just sets the passed options and the caller\n    shouldn't be expecting a return value anyway."
    options = _format_optdict(options)
    res = tk.call(*(args + options))
    if (len(options) % 2):
        return res
    return _splitdict(tk, options, conv=_tclobj_to_py)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py _val_or_dict/VarMisuse@59/205 `res`->`options`