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:
object
Generic option to use when building plotting dialogs.
See
PlotOptionList
for 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
- widget: QComboBox | QDoubleSpinBox | QLineEdit | QRadioButton
Widget used for entering option values