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

Function pin_update

pywebio/pin.py:368–377  ·  view source on GitHub ↗

Update attributes of pin widgets. :param str name: The ``name`` of the target input widget. :param spec: The pin widget parameters need to be updated. Note that those parameters can not be updated: ``type``, ``name``, ``code``, ``multiple``

(name: str, **spec)

Source from the content-addressed store, hash-verified

366
367
368def pin_update(name: str, **spec):
369 """Update attributes of pin widgets.
370
371 :param str name: The ``name`` of the target input widget.
372 :param spec: The pin widget parameters need to be updated.
373 Note that those parameters can not be updated: ``type``, ``name``, ``code``, ``multiple``
374 """
375 check_dom_name_value(name, 'pin `name`')
376 attributes = parse_input_update_spec(spec)
377 send_msg('pin_update', spec=dict(name=name, attributes=attributes))
378
379
380def pin_on_change(name: str, onchange: Callable[[Any], None] = None, clear: bool = False, init_run: bool = False, **callback_options):

Callers 2

targetFunction · 0.85
pin_widgetsFunction · 0.85

Calls 3

parse_input_update_specFunction · 0.90
check_dom_name_valueFunction · 0.85
send_msgFunction · 0.85

Tested by 1

targetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…