20 lines
707 B
Python
20 lines
707 B
Python
"""Builder for preprocess set summary section."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from PyQt6.QtWidgets import QFormLayout, QGroupBox, QLabel
|
|
|
|
|
|
def build_preprocess_summary_group(owner) -> QGroupBox:
|
|
"""Create selected calibration/reference summary section."""
|
|
group = QGroupBox("Selected Preprocess Sets")
|
|
form = QFormLayout(group)
|
|
form.setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow)
|
|
|
|
owner._selected_calibration_label = QLabel("<not selected>")
|
|
owner._selected_reference_label = QLabel("<not selected>")
|
|
|
|
form.addRow("Calibration", owner._selected_calibration_label)
|
|
form.addRow("Reference", owner._selected_reference_label)
|
|
return group
|