22 lines
808 B
Python
22 lines
808 B
Python
"""Builder for preprocess set summary section."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from PyQt6.QtWidgets import QFormLayout, QGroupBox, QLabel
|
|
|
|
from python_app.orchestration.preprocess_assets import VISIBLE_PREPROCESS_ASSET_KEYS, preprocess_asset_display_name
|
|
|
|
|
|
def build_preprocess_summary_group(owner) -> QGroupBox:
|
|
"""Create selected preprocess-set summary section."""
|
|
group = QGroupBox("Selected Preprocess Sets")
|
|
form = QFormLayout(group)
|
|
form.setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.AllNonFixedFieldsGrow)
|
|
|
|
owner._selected_preprocess_labels = {}
|
|
for key in VISIBLE_PREPROCESS_ASSET_KEYS:
|
|
label = QLabel("<not selected>")
|
|
owner._selected_preprocess_labels[key] = label
|
|
form.addRow(preprocess_asset_display_name(key), label)
|
|
return group
|