catalight.analysis.user_inputs.Option
- class catalight.analysis.user_inputs.Option(value: tuple | bool | float | str, include: bool, label: str, tooltip: str, widget: QComboBox | QDoubleSpinBox | QLineEdit | QRadioButton)
Bases:
objectGeneric option to use when building plotting dialogs.
See
PlotOptionListfor main usage. Multiple Option items are created withinPlotOptionList.__init__()to take in common user inputs. New Option items can be created to easily update GUI components for basic UI.- __init__(value: tuple | bool | float | str, include: bool, label: str, tooltip: str, widget: QComboBox | QDoubleSpinBox | QLineEdit | QRadioButton) None
Methods
__init__(value, include, label, tooltip, widget)Attributes
User supplied value
Indicates whether or not to include GUI element
String for constructing QLabel(label)
String for widget tooltip
Widget used for entering option values -
PyQt5.QtWidgets.QComboBox: Combo box widget.- widget: QComboBox | QDoubleSpinBox | QLineEdit | QRadioButton
Widget used for entering option values -
PyQt5.QtWidgets.QComboBox: Combo box widget. -PyQt5.QtWidgets.QDoubleSpinBox: Double spin box widget. -PyQt5.QtWidgets.QLineEdit: Line edit widget. -PyQt5.QtWidgets.QRadioButton: Radio button widget.