개정판 96b43f1c
issue #000: change
Change-Id: Id653ab8ca0bb9d5ff24d5718a8573996a79b2d71
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
665 | 665 |
rect = unknown.sceneBoundingRect() |
666 | 666 |
if rect.width() < minSize or rect.height() < minSize or rect.width() > maxSize or rect.height() > maxSize: |
667 | 667 |
continue |
668 |
self.onRecognizeText(round(rect.left()), round(rect.top()), round(rect.width()), round(rect.height()), show=False)
|
|
669 |
unknown.transfer.onRemoved.emit(unknown) |
|
668 |
if self.onRecognizeText(round(rect.left()), round(rect.top()), round(rect.width()), round(rect.height()), show=False):
|
|
669 |
unknown.transfer.onRemoved.emit(unknown)
|
|
670 | 670 |
|
671 | 671 |
def on_connect_line_to_symbol(self): |
672 | 672 |
"""connect line to symbol""" |
... | ... | |
1333 | 1333 |
break |
1334 | 1334 |
else: |
1335 | 1335 |
self.addMessage.emit(MessageType.Normal, self.tr('Fail to create text.')) |
1336 |
|
|
1337 |
return True |
|
1336 | 1338 |
elif QDialog.Accepted == res and not textInfoList and show: |
1337 | 1339 |
QMessageBox.about(self.graphicsView, self.tr("Notice"), self.tr("Fail to recognize text")) |
1338 | 1340 |
except Exception as ex: |
1339 | 1341 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
1340 | 1342 |
sys.exc_info()[-1].tb_lineno) |
1341 | 1343 |
self.addMessage.emit(MessageType.Error, message) |
1344 |
|
|
1345 |
return False |
|
1342 | 1346 |
|
1343 | 1347 |
''' |
1344 | 1348 |
@brief area configuration |
내보내기 Unified diff