mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect-gui.git
synced 2025-06-24 13:14:11 +08:00
fixed
This commit is contained in:
parent
b55a70d2b2
commit
728b35a9ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user