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):