Inputs classes¶
- class pymeasure.display.inputs.BooleanInput(parameter, parent=None, **kwargs)¶
Bases:
Input,QCheckBoxCheckbox for boolean values, connected to a
BooleanParameter.- set_parameter(parameter)¶
Connects a new parameter to the input box, and initializes the box value.
- Parameters:
parameter – parameter to connect.
- class pymeasure.display.inputs.Input(parameter, **kwargs)¶
Bases:
objectMix-in class that connects a
Parameterobject to a GUI input box.- Parameters:
parameter – The parameter to connect to this input box.
- Attr parameter:
Read-only property to access the associated parameter.
- property parameter¶
The connected parameter object. Read-only property; see
set_parameter().Note that reading this property will have the side-effect of updating its value from the GUI input box.
- set_parameter(parameter)¶
Connects a new parameter to the input box, and initializes the box value.
- Parameters:
parameter – parameter to connect.
- update_parameter()¶
Update the parameter value with the Input GUI element’s current value.
- class pymeasure.display.inputs.IntegerInput(parameter, parent=None, **kwargs)¶
Bases:
Input,QSpinBoxSpin input box for integer values, connected to a
IntegerParameter.- set_parameter(parameter)¶
Connects a new parameter to the input box, and initializes the box value.
- Parameters:
parameter – parameter to connect.
- stepEnabled(self) QAbstractSpinBox.StepEnabledFlag¶
- class pymeasure.display.inputs.ListInput(parameter, parent=None, **kwargs)¶
Bases:
Input,QComboBoxDropdown for list values, connected to a
ListParameter.- set_parameter(parameter)¶
Connects a new parameter to the input box, and initializes the box value.
- Parameters:
parameter – parameter to connect.
- class pymeasure.display.inputs.ScientificInput(parameter, parent=None, **kwargs)¶
Bases:
Input,QDoubleSpinBoxSpinner input box for floating-point values, connected to a
FloatParameter. This box will display and accept values in scientific notation when appropriate.See also
- Class
FloatInput For a non-scientific floating-point input box.
- set_parameter(parameter)¶
Connects a new parameter to the input box, and initializes the box value.
- Parameters:
parameter – parameter to connect.
- stepEnabled(self) QAbstractSpinBox.StepEnabledFlag¶
- textFromValue(self, v: float) str¶
- validate(self, input: str | None, pos: int)¶
- valueFromText(self, text: str | None) float¶
- Class