From 582a36e7511a822d3225ad9808916e6c16392099 Mon Sep 17 00:00:00 2001 From: kyz Date: Tue, 16 Dec 2025 15:00:28 +0800 Subject: [PATCH] =?utf8?q?wifi=E6=B5=8B=E8=AF=95=E5=B7=A5=E5=85=B7?= =?utf8?q?=E7=BD=91=E7=BB=9Cv1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../cpbs-202103-20240423/test/test.py" | 8 ++- .../cpbs-202103-20240423/test/test.ui" | 58 ++++++++----------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.py" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.py" index f6978bf..24417ec 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.py" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.py" @@ -16,7 +16,8 @@ class WiFiClientApp(QMainWindow, Ui_WiFiClientApp): # 初始化UI self.setupUi(self) - self.setGeometry(100, 100, 1000, 550) # 调整窗口大小 + self.setGeometry(100, 100, 1024, 768) # 调整窗口大小 + self.setWindowTitle("充电扳手WIFI测试工具 v1.0") # 设置窗口标题 # 设置日志文本框支持HTML self.log_text.setAcceptRichText(True) @@ -317,6 +318,11 @@ class WiFiClientApp(QMainWindow, Ui_WiFiClientApp): data = self.socket.recv(1024) if data: self.log_signal.emit(f"接收数据: {data.decode().strip()}", 'receive') + else: + self.log_signal.emit("接收数据为空,可能是服务器断开连接", 'info') #todo + self.connected = False + self.connect_signal.emit(False) + except Exception as e: if self.connected: self.log_signal.emit(f"接收数据失败: {e}", 'error') diff --git "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.ui" "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.ui" index e00cfe6..bea2841 100644 --- "a/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.ui" +++ "b/20240801\345\256\214\346\225\264\347\211\210/\346\211\263\346\211\213\344\270\213\344\275\215\346\234\272\350\275\257\344\273\266/cpbs-202103-20240423/test/test.ui" @@ -6,40 +6,14 @@ 0 0 - 1007 - 683 + 1024 + 768 - WiFi扳手下位机客户端 + 充电扳手WIFI测试工具 - - - - 410 - 20 - 591 - 651 - - - - - - - - - 10 - 0 - 571 - 641 - - - - true - - - @@ -136,7 +110,7 @@ 320 10 91 - 441 + 461 @@ -1066,16 +1040,34 @@ - 330 - 630 + 940 + 10 61 41 - 清除日志 + 清除 + + + + + + 420 + 10 + 600 + 753 + + + + true + log_text + groupBox + groupBox_6 + scrollArea + btn_clear_log -- 2.34.1