개정판 48e3b98b
issue #000: need fix focus
Change-Id: I709de2b21169f526efe3ad3ff70fff7290a610d0
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
637 | 637 |
def symbolTrainingClicked(self): |
638 | 638 |
try: |
639 | 639 |
dialog = QTrainingSymbolImageListDialog(self) |
640 |
dialog.show() |
|
640 | 641 |
dialog.exec_() |
641 | 642 |
except Exception as ex: |
642 | 643 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
DTI_PID/DTI_PID/QtImageViewer.py | ||
---|---|---|
720 | 720 |
# svg.reSettingConnetors() |
721 | 721 |
|
722 | 722 |
if not strict: |
723 |
scene.clearFocus() |
|
723 |
# need fix |
|
724 |
App.mainWnd().symbolTreeWidget.clearFocus() |
|
725 |
scene.setFocus() |
|
726 |
#scene.clearFocus() |
|
724 | 727 |
for item in scene.selectedItems(): |
725 | 728 |
item.setSelected(False) |
726 | 729 |
|
727 |
#self.setFocus() |
|
728 | 730 |
svg.setSelected(True) |
729 | 731 |
scene.setFocusItem(svg) |
730 | 732 |
except Exception as ex: |
DTI_PID/DTI_PID/TrainingSymbolImageListDialog.py | ||
---|---|---|
486 | 486 |
|
487 | 487 |
try: |
488 | 488 |
dialog = QTrainingSymbolEditorDialog(self, drawingPath, traininglabelPath, boundarySymbolData, self.ui.tableWidgetList.item(row, 2), self.ui.tableWidgetList.item(row, 3)) |
489 |
dialog.show() |
|
489 | 490 |
dialog.exec_() |
490 | 491 |
self.makeChart() |
491 | 492 |
except Exception as ex: |
내보내기 Unified diff