8.5.4.1.10. pymodaq_gui.parameter.pymodaq_ptypes.slide module

class pymodaq_gui.parameter.pymodaq_ptypes.slide.SliderParameter(**kwargs)[source]

Bases: SimpleParameter

Methods

itemClass

alias of SliderParameterItem

itemClass

alias of SliderParameterItem

class pymodaq_gui.parameter.pymodaq_ptypes.slide.SliderParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Registered parameter type which displays a QLineEdit

Methods

limitsChanged(param, limits)

Called when the parameter's limits have changed

makeWidget()

Return a single widget whose position in the tree is determined by the value of self.asSubItem.

optsChanged(param, opts)

Called when any options are changed that are not name, value, default, or limits

updateDisplayLabel([value])

Update the display label to reflect the value of the parameter.

showEditor

limitsChanged(param, limits)[source]

Called when the parameter’s limits have changed

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.

optsChanged(param, opts)[source]

Called when any options are changed that are not name, value, default, or limits

showEditor()[source]
updateDisplayLabel(value=None)[source]

Update the display label to reflect the value of the parameter.

class pymodaq_gui.parameter.pymodaq_ptypes.slide.SliderSpinBox(*args, subtype='linear', **kwargs)[source]

Bases: QWidget

Attributes:
opts

Methods

get_bounds()

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

get_bounds()[source]

Convert bounds from opts into list of floats

Returns:

list of floats

initUI(*args, **kwargs)[source]

Init the User Interface.

insert_widget(widget, row=0)[source]
setOpts(**opts)[source]
setValue(val)[source]
update_slide(val)[source]

val is the spinbox value between its min and max

update_spinbox(val)[source]

val is a percentage [0-100] used in order to set the spinbox value between its min and max

value()[source]
property opts