jdxi_editor.ui.widgets.slider
Submodules
Classes
Custom slider widget with label and value digital |
Package Contents
- class jdxi_editor.ui.widgets.slider.Slider(label: str, min_value: int, max_value: int, midi_helper: jdxi_editor.midi.io.helper.MidiIOHelper, vertical: bool = False, show_value_label: bool = True, is_bipolar: bool = False, tooltip: str = '', draw_center_mark: bool = True, draw_tick_marks: bool = True, initial_value: int = 0, parent=None)[source]
Bases:
jdxi_editor.ui.common.QWidgetCustom slider widget with label and value digital
- rpn_slider_changed
- valueChanged
- value_changed
- DRAG_EMIT_INTERVAL_MS = 25
- label_text
- min_value
- max_value
- midi_helper
- value_display_format
- has_center_mark = False
- center_value = 0
- vertical = False
- is_bipolar = False
- draw_center_mark = True
- draw_tick_marks = True
- label
- slider
- previous = 0
- _drag_timer
- value_label
- _on_valueChanged(value: int)[source]
Update the label at once and emit valueChanged once per change.
While the handle is dragged the emission is throttled to DRAG_EMIT_INTERVAL_MS, so a fast drag does not queue a message per pixel; the final value is always sent.
- _emit_pending() None[source]
Send the latest value if it has not gone out yet (drag tick or release).