release: DLD154Tool v1.0.0 — 版本显示+PyInstaller打包

This commit is contained in:
wangfq
2026-07-31 09:50:35 +08:00
parent 7a0304ee65
commit 3ba5b4824c
3 changed files with 54 additions and 1 deletions
+6 -1
View File
@@ -8,6 +8,8 @@ DLD154Tool — DLD154Pro 桌面串口调试工具
依赖: PySide6, pyserial
"""
TOOL_VERSION = "1.0.0"
import sys
import struct
import threading
@@ -553,7 +555,7 @@ class LogTab(QWidget):
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("DLD154Tool — DLD154Pro 串口调试工具")
self.setWindowTitle(f"DLD154Tool v{TOOL_VERSION} — DLD154Pro 串口调试工具")
self.setMinimumSize(800, 650)
self._sc = SerialClient()
@@ -586,6 +588,9 @@ class MainWindow(QMainWindow):
self._log_tab.append("DLD154Tool 启动")
# 状态栏: 显示版本
self.statusBar().showMessage(f"DLD154Tool v{TOOL_VERSION} | 就绪")
def _on_connect_changed(self, connected: bool):
if connected:
self._start_worker()