From 728b35a9ad60ca8c9c156ffd3791566707b6a360 Mon Sep 17 00:00:00 2001 From: njdaoyehu Date: Fri, 22 Nov 2024 10:31:42 +0800 Subject: [PATCH] fixed --- widget/task_run.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/widget/task_run.py b/widget/task_run.py index 658fb1e..d9047ed 100644 --- a/widget/task_run.py +++ b/widget/task_run.py @@ -171,12 +171,12 @@ class TaskRunDialog(QDialog): self.start_check_button.setFixedHeight(self.ratio * 42) self.start_check_button.clicked.connect(self.start_check) - self.stop_check_button = QPushButton() - self.stop_check_button.setObjectName("stopCheckButton") - self.stop_check_button.setEnabled(False) - self.stop_check_button.setText("停止检测") - self.stop_check_button.setFixedHeight(self.ratio * 42) - self.stop_check_button.clicked.connect(self.stop_check) + # self.stop_check_button = QPushButton() + # self.stop_check_button.setObjectName("stopCheckButton") + # self.stop_check_button.setEnabled(False) + # self.stop_check_button.setText("停止检测") + # self.stop_check_button.setFixedHeight(self.ratio * 42) + # self.stop_check_button.clicked.connect(self.stop_check) self.stop_task_button = QPushButton() self.stop_task_button.setObjectName("stopTaskButton") @@ -231,14 +231,14 @@ class TaskRunDialog(QDialog): def start_adjust(self): self.start_adjust_button.setEnabled(False) self.start_check_button.setEnabled(True) - self.stop_check_button.setEnabled(False) + # self.stop_check_button.setEnabled(False) AppContext.get_edge_context().get_component('image-framework').start_detect() def start_check(self): self.start_adjust_button.setEnabled(False) self.start_check_button.setEnabled(False) - self.stop_check_button.setEnabled(True) + # self.stop_check_button.setEnabled(True) index = 0 for item in self.embed_widgets: @@ -254,5 +254,5 @@ class TaskRunDialog(QDialog): def stop_check(self): self.start_adjust_button.setEnabled(True) self.start_check_button.setEnabled(False) - self.stop_check_button.setEnabled(False) + # self.stop_check_button.setEnabled(False) self.checkIndex += 1