"""Builder for hardware actions section.""" from __future__ import annotations from PyQt6.QtCore import Qt from PyQt6.QtWidgets import QGroupBox, QPushButton, QVBoxLayout def build_hardware_actions_group(owner) -> QGroupBox: """Create hardware action buttons section.""" group = QGroupBox("Hardware Actions") layout = QVBoxLayout(group) layout.setSpacing(8) apply_radar_button = QPushButton("Apply Radar") apply_radar_button.clicked.connect(owner._apply_radar_settings) layout.addWidget(apply_radar_button, alignment=Qt.AlignmentFlag.AlignLeft) save_config_button = QPushButton("Save Config") save_config_button.clicked.connect(owner._save_current_config) layout.addWidget(save_config_button, alignment=Qt.AlignmentFlag.AlignLeft) preprocess_button = QPushButton("Preprocessing") preprocess_button.clicked.connect(owner._open_preprocess_panel) layout.addWidget(preprocess_button, alignment=Qt.AlignmentFlag.AlignLeft) return group