From ad4deae0c6fbfb6e3cd3c8322c8fe61890be7684 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Sat, 13 Dec 2025 14:15:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(ALMainWindow):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E6=97=B6=E7=9A=84=E6=8C=89=E9=92=AE=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=87=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 函数更改于(#9255eec) --- src/base/MsgBase.py | 4 ++-- src/gui/ALMainWindow.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/base/MsgBase.py b/src/base/MsgBase.py index 94f2172..ad860d3 100644 --- a/src/base/MsgBase.py +++ b/src/base/MsgBase.py @@ -29,7 +29,7 @@ class MsgBase: msg: str ): - self._output_queue.put(f"[{self._class_name:<12}] >>> : {msg}") + self._output_queue.put(f"[{self._class_name:<15}] >>> : {msg}") def _showTrace( @@ -38,7 +38,7 @@ class MsgBase: ): timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) - self._output_queue.put(f"{timestamp}-[{self._class_name:<12}] : {msg}") + self._output_queue.put(f"{timestamp}-[{self._class_name:<15}] : {msg}") def _waitMsg( diff --git a/src/gui/ALMainWindow.py b/src/gui/ALMainWindow.py index 20ba216..246b80e 100644 --- a/src/gui/ALMainWindow.py +++ b/src/gui/ALMainWindow.py @@ -229,7 +229,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): self.timerTaskIsRunning.emit(timer_task) self.__timer_task_timer.stop() self.__is_running_timer_task = True - self.setControlButtons(False, False, True) + self.setControlButtons(True, True, False) if not timer_task["silent"]: self.TrayIcon.showMessage( "定时任务 - AutoLibrary", @@ -270,7 +270,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): msg: str ): - self.appendToTextEdit(f"[{self.__class_name:<12}] >>> : {msg}") + self.__output_queue.put(f"[{self.__class_name:<15}] >>> : {msg}") @Slot() def showTrace( @@ -279,7 +279,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): ): timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) - self.appendToTextEdit(f"{timestamp}-[{self.__class_name:<12}] : {msg}") + self.__output_queue.put(f"{timestamp}-[{self.__class_name:<15}] : {msg}") @Slot() def pollMsgQueue( @@ -379,7 +379,7 @@ class ALMainWindow(QMainWindow, Ui_ALMainWindow): self ): - self.setControlButtons(False, False, True) + self.setControlButtons(True, True, False) if self.__auto_lib_thread is None: self.__auto_lib_thread = AutoLibWorker( self.__input_queue,