7.5.4.1.9. pymodaq_gui.parameter.pymodaq_ptypes.slide module
- class pymodaq_gui.parameter.pymodaq_ptypes.slide.SliderParameter(**kwargs)[source]
Bases:
SimpleParameterMethods
alias of
SliderParameterItem- itemClass
alias of
SliderParameterItem
- class pymodaq_gui.parameter.pymodaq_ptypes.slide.SliderParameterItem(param, depth)[source]
Bases:
WidgetParameterItemRegistered parameter type which displays a QLineEdit
Methods
Return a single widget whose position in the tree is determined by the value of self.asSubItem.
updateDisplayLabel([value])Update the display label to reflect the value of the parameter.
showEditor
- makeWidget()[source]
Return a single widget whose position in the tree is determined by the value of self.asSubItem. If True, it will be placed in the second tree column, and if False, the first tree column of a child item.
The widget must be given three attributes:
sigChanged
a signal that is emitted when the widget’s value is changed
value
a function that returns the value
setValue
a function that sets the value
This function must be overridden by a subclass.
- class pymodaq_gui.parameter.pymodaq_ptypes.slide.SliderSpinBox(*args, subtype='linear', **kwargs)[source]
Bases:
QWidget- Attributes:
- opts
Methods
Convert bounds from opts into list of floats
initUI(*args, **kwargs)Init the User Interface.
update_slide(val)val is the spinbox value between its min and max
update_spinbox(val)val is a percentage [0-100] used in order to set the spinbox value between its min and max
insert_widget
setOpts
setValue
value
- update_spinbox(val)[source]
val is a percentage [0-100] used in order to set the spinbox value between its min and max
- property opts