(value, script=False)
return value
Internal function.
Internal function.
Internal function .
def _format_optvalue(value, script=False):
    """Internal function."""
    if script:
        # if caller passes a Tcl script to tk.call, all the values need to
        # be grouped into words (arguments to a command in Tcl dialect)
        value = _stringify(value)
    elif isinstance(value, (list, tuple)):
        value = _join(value)
    return value
def _format_optvalue ( value , script = False ) : if script : # if caller passes a Tcl script to tk.call, all the values need to # be grouped into words (arguments to a command in Tcl dialect) value = _stringify ( value ) elif isinstance ( value , ( list , tuple ) ) : value = _join ( value ) return value