MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / put_checkbox

Function put_checkbox

pywebio/pin.py:191–199  ·  view source on GitHub ↗

Output a checkbox widget. Refer to: `pywebio.input.checkbox()`

(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '',
                 inline: bool = None, value: List = None, help_text: str = None, scope: str = None,
                 position: int = OutputPosition.BOTTOM)

Source from the content-addressed store, hash-verified

189
190
191def put_checkbox(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '',
192 inline: bool = None, value: List = None, help_text: str = None, scope: str = None,
193 position: int = OutputPosition.BOTTOM) -> Output:
194 """Output a checkbox widget. Refer to: `pywebio.input.checkbox()`"""
195 from pywebio.input import checkbox
196 check_dom_name_value(name, 'pin `name`')
197 single_input_return = checkbox(name=name, options=options, label=label, inline=inline, value=value,
198 help_text=help_text)
199 return _pin_output(single_input_return, scope, position)
200
201
202def put_radio(name: str, options: List[Union[Dict[str, Any], Tuple, List, str]] = None, *, label: str = '',

Callers 2

targetFunction · 0.85
pin_widgetsFunction · 0.85

Calls 3

checkboxFunction · 0.90
check_dom_name_valueFunction · 0.85
_pin_outputFunction · 0.85

Tested by 1

targetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…