개정판 2a22b42a
issue #000: change c key, add ai time delay
Change-Id: I5f7ac02e289c51e6032414ca8708db630a7638db
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
3359 | 3359 |
if index % count == 0: |
3360 | 3360 |
symbols.pop(index) |
3361 | 3361 |
|
3362 |
time_delay = 10 if mode == 2 else 20 |
|
3363 |
time_stamp = timeit.default_timer() |
|
3364 |
while True: |
|
3365 |
if time_stamp - timeit.default_timer() > time_delay: |
|
3366 |
break |
|
3367 |
|
|
3362 | 3368 |
# merge symbol box |
3363 | 3369 |
overlap_merges = [] |
3364 | 3370 |
for rect1 in symbols: |
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1383 | 1383 |
''' |
1384 | 1384 |
|
1385 | 1385 |
def keyPressEvent(self, event): |
1386 |
from EngineeringLineNoTextItem import QEngineeringLineNoTextItem |
|
1387 |
|
|
1386 | 1388 |
if self.isSelected() and event.key() == Qt.Key_Delete: |
1387 | 1389 |
self.scene().removeItem(self) |
1388 | 1390 |
elif event.key() == Qt.Key_C and self.is_piping(True): |
1389 |
self.reverse(True) |
|
1391 |
if self.owner and issubclass(type(self.owner), QEngineeringLineNoTextItem): |
|
1392 |
index = 1 |
|
1393 |
for run in self.owner.runs: |
|
1394 |
if self in run.items: |
|
1395 |
if index == 1: |
|
1396 |
self.owner.reverse() |
|
1397 |
else: |
|
1398 |
run.reverse() |
|
1399 |
break |
|
1400 |
else: |
|
1401 |
index = index + 1 |
|
1402 |
else: |
|
1403 |
self.reverse(True) |
|
1390 | 1404 |
elif event.key() == Qt.Key_A: |
1391 | 1405 |
self.toggleFlowMark() |
1392 | 1406 |
elif event.key() == Qt.Key_Up: # translate up/down/left/right symbol |
DTI_PID/DTI_PID/Training_Result_UI.py | ||
---|---|---|
95 | 95 |
self.lineEdit_2.setText(_translate("TrainingResultDialog", "0.936")) |
96 | 96 |
self.lineEdit_5.setText(_translate("TrainingResultDialog", "1.124")) |
97 | 97 |
self.lineEdit_4.setText(_translate("TrainingResultDialog", "55.7")) |
98 |
self.lineEdit_3.setText(_translate("TrainingResultDialog", "40.6"))
|
|
98 |
self.lineEdit_3.setText(_translate("TrainingResultDialog", "48.6"))
|
|
99 | 99 |
self.lineEdit_6.setText(_translate("TrainingResultDialog", "0.983")) |
100 | 100 |
self.pushButtonDeployment.setText(_translate("TrainingResultDialog", "Deploy Models")) |
101 | 101 |
|
DTI_PID/DTI_PID/UI/Training_Result.ui | ||
---|---|---|
110 | 110 |
<item row="3" column="1"> |
111 | 111 |
<widget class="QLineEdit" name="lineEdit_3"> |
112 | 112 |
<property name="text"> |
113 |
<string>40.6</string>
|
|
113 |
<string>48.6</string>
|
|
114 | 114 |
</property> |
115 | 115 |
<property name="readOnly"> |
116 | 116 |
<bool>true</bool> |
내보내기 Unified diff