MCPcopy Create free account
hub / github.com/LabPy/lantz / widgets_values_as_dict

Method widgets_values_as_dict

lantz/ui/widgets.py:580–585  ·  view source on GitHub ↗

Return a dictionary mapping each writable feat name to the current value of the widget.

(self)

Source from the content-addressed store, hash-verified

578 widget._widget._update_on_change = new_state
579
580 def widgets_values_as_dict(self):
581 """Return a dictionary mapping each writable feat name to the current
582 value of the widget.
583 """
584 return {widget._feat.name: widget._widget.value()
585 for widget in self.writable_widgets}
586
587 @property
588 def lantz_target(self):

Callers 1

__init__Method · 0.95

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected