Inputs classes
- class pymeasure.display.inputs.BooleanInput(parameter, parent=None, **kwargs)
Bases:
Input
,QCheckBox
Checkbox 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:
object
Mix-in class that connects a
Parameter
object 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
,QSpinBox
Spin 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.StepEnabled
- class pymeasure.display.inputs.ListInput(parameter, parent=None, **kwargs)
Bases:
Input
,QComboBox
Dropdown 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
,QDoubleSpinBox
Spinner 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.StepEnabled
- textFromValue(self, v: float) str
- validate(self, input: str, pos: int) Tuple[QValidator.State, str, int]
- valueFromText(self, text: str) float
- Class