MCPcopy
hub / github.com/visomaster/VisoMaster / setValue

Method setValue

app/ui/widgets/widget_components.py:1009–1013  ·  view source on GitHub ↗

Set the slider value, scaling it from a float to the internal integer.

(self, value)

Source from the content-addressed store, hash-verified

1007 # return super().value()
1008
1009 def setValue(self, value):
1010 """Set the slider value, scaling it from a float to the internal integer."""
1011 super().setValue(int(value))
1012 if self.line_edit:
1013 self.line_edit.set_value(int(value)) # Aggiorna immediatamente il valore nel line edit
1014
1015 def wheelEvent(self, event):
1016 """Override wheel event to define custom increments/decrements with the mouse wheel."""

Callers 15

__init__Method · 0.95
handle_slider_movedMethod · 0.95
wheelEventMethod · 0.95
keyPressEventMethod · 0.95
mousePressEventMethod · 0.95
set_valueMethod · 0.95
keyPressEventMethod · 0.45
setupUiMethod · 0.45
load_mediaMethod · 0.45
setValueMethod · 0.45

Calls 1

set_valueMethod · 0.45

Tested by

no test coverage detected