26 lines
875 B
Python
26 lines
875 B
Python
"""Builder for hardware actions section."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from PyQt6.QtWidgets import QGroupBox, QHBoxLayout, QPushButton
|
|
|
|
|
|
def build_hardware_actions_group(owner) -> QGroupBox:
|
|
"""Create hardware action buttons section."""
|
|
group = QGroupBox("Hardware Actions")
|
|
layout = QHBoxLayout(group)
|
|
layout.setSpacing(8)
|
|
|
|
apply_radar_button = QPushButton("Apply Radar Settings")
|
|
apply_radar_button.clicked.connect(owner._apply_radar_settings)
|
|
layout.addWidget(apply_radar_button)
|
|
|
|
save_config_button = QPushButton("Save Current Config")
|
|
save_config_button.clicked.connect(owner._save_current_config)
|
|
layout.addWidget(save_config_button)
|
|
|
|
preprocess_button = QPushButton("Preprocessing Panel")
|
|
preprocess_button.clicked.connect(owner._open_preprocess_panel)
|
|
layout.addWidget(preprocess_button)
|
|
return group
|