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

Method value

lantz/ui/widgets.py:821–826  ·  view source on GitHub ↗

Get widget value and scale by units.

(self)

Source from the content-addressed store, hash-verified

819 self.setSingleStep(conv(2))
820
821 def value(self):
822 """Get widget value and scale by units.
823 """
824 if self._units:
825 return super().value() * self._units
826 return super().value()
827
828 def setValue(self, value):
829 """Set widget value scaled by units.

Callers 2

keyPressEventMethod · 0.95
change_unitsMethod · 0.95

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected