feat: 添加上证所截图独立线程并优化定时任务

- 新增 ScreenshotWorker 类专门处理上证所截图任务
- 将截图功能从主工作线程分离,避免阻塞
- 缩短截图爬取间隔至60秒
- 添加波形图数据点方法(暂未实现功能)
- 更新.gitignore 忽略 .spec 文件
- 添加程序图标和截图资源文件
This commit is contained in:
2026-01-14 14:39:44 +08:00
parent e90bbfec7d
commit 2a560108df
5 changed files with 72 additions and 4 deletions

View File

@@ -451,6 +451,10 @@ class MainWindow(QWidget):
self.screenshot_label.setText("截图加载失败")
logger.warning("截图加载失败")
def add_waveform_data(self, time_str: str, value: float):
"""添加波形图数据点(暂未实现波形图功能)"""
logger.debug(f"波形图数据: 时间={time_str}, 值={value}")
class QCheckBox(QPushButton):
"""自定义复选框"""