Step4 心跳刷新 + Step10 输出目录更名与智能寻址优化
This commit is contained in:
@ -6,6 +6,7 @@ Step4 面板 - 采样点布设
|
||||
|
||||
import os
|
||||
|
||||
from PyQt5.QtCore import QTimer
|
||||
from PyQt5.QtWidgets import (
|
||||
QWidget, QVBoxLayout, QGroupBox, QFormLayout,
|
||||
QPushButton, QCheckBox, QSpinBox, QMessageBox,
|
||||
@ -94,6 +95,11 @@ class Step4SamplingPanel(QWidget):
|
||||
layout.addStretch()
|
||||
self.setLayout(layout)
|
||||
|
||||
# 添加心跳定时器,每2秒自动检查一次输出文件状态,刷新预览按钮
|
||||
self._status_timer = QTimer(self)
|
||||
self._status_timer.timeout.connect(self._check_csv_exists)
|
||||
self._status_timer.start(2000)
|
||||
|
||||
# 监听输出路径变化,实时更新预览按钮状态
|
||||
self.output_file.line_edit.textChanged.connect(self._on_output_changed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user