qudi.util.widgets.parameter_editor

Classes

ParameterEditor(*args, func[, values])

Dynamically created editor widget for callable parameters.

ParameterEditorDialog(*args, func[, values])

QDialog containing a ParameterEditor widget and OK, Cancel and Apply buttons.

class qudi.util.widgets.parameter_editor.ParameterEditor(*args, func: Callable, values: Mapping[str, Any] | None = None, **kwargs)[source]

Bases: PySide2.QtWidgets.QWidget

Dynamically created editor widget for callable parameters. For best results use default values and simple type annotations in the callable to create the editor for.

INVALID = <object object>
get_parameter_values() Dict[str, Any][source]

Returns the current parameter values entered into the editor

staticMetaObject = <PySide2.QtCore.QMetaObject object>
class qudi.util.widgets.parameter_editor.ParameterEditorDialog(*args, func: Callable, values: Mapping[str, Any] | None = None, **kwargs)[source]

Bases: PySide2.QtWidgets.QDialog

QDialog containing a ParameterEditor widget and OK, Cancel and Apply buttons.

staticMetaObject = <PySide2.QtCore.QMetaObject object>