Inputs classes¶
- class pymeasure.display.inputs.BooleanInput(*args: Any, **kwargs: Any)¶
Bases:
pyqtgraph.Qt.QtWidgets.QCheckBox,pymeasure.display.inputs.InputCheckbox 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.FloatInput(*args: Any, **kwargs: Any)¶
Bases:
pyqtgraph.Qt.QtWidgets.QDoubleSpinBox,pymeasure.display.inputs.InputSpin input box for floating-point values, connected to a
FloatParameter.See also
- Class
ScientificInput For inputs in scientific notation.
- set_parameter(parameter)¶
Connects a new parameter to the input box, and initializes the box value.
- Parameters
parameter – parameter to connect.
- Class
- 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(*args: Any, **kwargs: Any)¶
Bases:
pyqtgraph.Qt.QtWidgets.QSpinBox,pymeasure.display.inputs.InputSpin 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.
- class pymeasure.display.inputs.ListInput(*args: Any, **kwargs: Any)¶
Bases:
pyqtgraph.Qt.QtWidgets.QComboBox,pymeasure.display.inputs.InputDropdown 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(*args: Any, **kwargs: Any)¶
Bases:
pyqtgraph.Qt.QtWidgets.QDoubleSpinBox,pymeasure.display.inputs.InputSpinner 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.
- Class
- class pymeasure.display.inputs.StringInput(*args: Any, **kwargs: Any)¶
Bases:
pyqtgraph.Qt.QtWidgets.QLineEdit,pymeasure.display.inputs.InputString input box connected to a
Parameter. Parameter subclasses that are string-based may also use this input, but non-string parameters should use more specialised input classes.