MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / get_pin_values

Function get_pin_values

pywebio/pin.py:277–287  ·  view source on GitHub ↗

Get the value of multiple pin widgets. Compared to using the :data:`pin` object to get the value of the pin widget one by one, this function can get the value of multiple pin widgets at once and is more efficient when getting the value of multiple pin widgets. :return: A dict,

(names: list[str])

Source from the content-addressed store, hash-verified

275
276
277def get_pin_values(names: list[str]) -> dict[str, Any]:
278 """
279 Get the value of multiple pin widgets.
280 Compared to using the :data:`pin` object to get the value of the pin widget one by one,
281 this function can get the value of multiple pin widgets at once and is more efficient
282 when getting the value of multiple pin widgets.
283
284 :return: A dict, the key is the name of the pin widget, and the value is the value of the pin widget.
285 If the pin widget does not exist, the dict will not contain the corresponding key.
286 """
287 return _get_pin_values(names)
288
289
290class Pin_:

Callers

nothing calls this directly

Calls 1

_get_pin_valuesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…