개정판 c47ad347
validate
Change-Id: I69c0fe7dc5189863a4159e76da225bdce8b1a5fa
DTI_PID/DTI_PID/Commands/HighlightCommand.py | ||
---|---|---|
116 | 116 |
|
117 | 117 |
param.setSelected(True) |
118 | 118 |
param.update() |
119 |
elif False:#type(param) is QEngineeringErrorItem:
|
|
119 |
elif type(param) is QEngineeringErrorItem: |
|
120 | 120 |
rect = param.sceneBoundingRect() |
121 | 121 |
rect.united(param.parent.sceneBoundingRect()) |
122 | 122 |
|
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
543 | 543 |
""" |
544 | 544 |
from HighlightCommand import HighlightCommand |
545 | 545 |
|
546 |
HighlightCommand(self.graphicsView).execute(item.tag) |
|
546 |
try: |
|
547 |
HighlightCommand(self.graphicsView).execute(item.tag) |
|
548 |
except Exception as ex: |
|
549 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
|
550 |
sys.exc_info()[-1].tb_lineno) |
|
551 |
self.addMessage.emit(MessageType.Error, message) |
|
547 | 552 |
|
548 | 553 |
def read_settings(self): |
549 | 554 |
"""read geometry and state""" |
내보내기 Unified diff