개정판 ad8a4791
Action Group 수정 중
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
120 | 120 |
|
121 | 121 |
# Initialize Action group |
122 | 122 |
actionGroup = QActionGroup(self) |
123 |
actionGroup.setExclusive(False) |
|
123 | 124 |
actionGroup.addAction(self.actionRecognition) |
124 | 125 |
actionGroup.addAction(self.actionLineRecognition) |
125 | 126 |
actionGroup.addAction(self.actionEquipment) |
... | ... | |
127 | 128 |
actionGroup.addAction(self.actionLine) |
128 | 129 |
actionGroup.addAction(self.actionGenerateOutput) |
129 | 130 |
actionGroup.addAction(self.actionOCR) |
131 |
#actionGroup.triggered.connect(self.actionGroupTriggered) |
|
130 | 132 |
|
131 | 133 |
# connect signals and slots |
132 | 134 |
self.actionClose.triggered.connect(self.close) |
... | ... | |
147 | 149 |
self.actionNozzle.triggered.connect(self.createNozzle) |
148 | 150 |
self.graphicsView.scene.changed.connect(lambda: self.resultTreeWidget.sceneChanged(self.graphicsView.scene.items())) |
149 | 151 |
|
152 |
#def actionGroupTriggered(self, action): |
|
153 |
# if action.isChecked(): |
|
154 |
# action.setChecked(False) |
|
155 |
|
|
150 | 156 |
''' |
151 | 157 |
@brief Create Equipment |
152 | 158 |
@author Jeongwoo |
... | ... | |
155 | 161 |
''' |
156 | 162 |
def createEquipment(self): |
157 | 163 |
if not self.graphicsView.hasImage(): |
164 |
self.actionEquipment.setChecked(False) |
|
158 | 165 |
self.showImageSelectionMessageBox() |
159 | 166 |
return |
160 | 167 |
if self.actionEquipment.isChecked(): |
... | ... | |
171 | 178 |
''' |
172 | 179 |
def createNozzle(self): |
173 | 180 |
if not self.graphicsView.hasImage(): |
181 |
self.actionNozzle.setChecked(False) |
|
174 | 182 |
self.showImageSelectionMessageBox() |
175 | 183 |
return |
176 | 184 |
if self.actionNozzle.isChecked(): |
... | ... | |
187 | 195 |
''' |
188 | 196 |
def areaOcr(self): |
189 | 197 |
if not self.graphicsView.hasImage(): |
198 |
self.actionOCR.setChecked(False) |
|
190 | 199 |
self.showImageSelectionMessageBox() |
191 | 200 |
return |
192 | 201 |
|
내보내기 Unified diff