Internal function.
(value, script=False)
| 28 | |
| 29 | |
| 30 | def _format_optvalue(value, script=False): |
| 31 | """Internal function.""" |
| 32 | if script: |
| 33 | # if caller passes a Tcl script to tk.call, all the values need to |
| 34 | # be grouped into words (arguments to a command in Tcl dialect) |
| 35 | value = _stringify(value) |
| 36 | elif isinstance(value, (list, tuple)): |
| 37 | value = _join(value) |
| 38 | return value |
| 39 | |
| 40 | def _format_optdict(optdict, script=False, ignore=None): |
| 41 | """Formats optdict to a tuple to pass it to tk.call. |
no test coverage detected
searching dependent graphs…