From 1cafd971899e95727ca884c7d3febb4bfb605be4 Mon Sep 17 00:00:00 2001 From: halliday2023 Date: Tue, 13 Feb 2024 12:06:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE=E7=BD=AE?= =?UTF-8?q?=E7=81=B0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/GUIWindows.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/GUIWindows.py b/bin/GUIWindows.py index 5f25d00..9a93c32 100644 --- a/bin/GUIWindows.py +++ b/bin/GUIWindows.py @@ -70,7 +70,7 @@ class Window(formType, baseType): else: self.start_run_db() # 按钮置灰 - self.startButton.setEnabled(not self.startButton.isEnabled()) + self.startButton.setEnabled(False) @Slot() @@ -82,7 +82,8 @@ class Window(formType, baseType): else: self.stop_run_db() # 按钮恢复 - self.startButton.setEnabled(not self.startButton.isEnabled()) + # self.startButton.isEnabled() 获取按钮的状态 + self.startButton.setEnabled(True) @Slot() def conntest(self):