개정판 a1de571d
fix
Change-Id: I1f4f43c95c9cd3d8e19dd68233bd2b85220a185c
DTI_PID/DTI_PID/Commands/SelectAttributeBatchCommand.py | ||
---|---|---|
70 | 70 |
item = self.selection_order.pop(0) |
71 | 71 |
stream = [item for item in self.selection_order if issubclass(type(item), SymbolSvgItem) or type(item) is QEngineeringLineItem] |
72 | 72 |
values = [item for item in self.selection_order if issubclass(type(item), QEngineeringTextItem)] |
73 |
|
|
73 |
|
|
74 | 74 |
if item and not stream and not values: |
75 |
App.mainWnd().on_connect_spec_breaks([item]) |
|
75 |
if App.mainWnd().on_connect_spec_breaks([item]): |
|
76 |
self.onSuccess.emit(item) |
|
76 | 77 |
return |
77 | 78 |
if len(stream) != 2 or len(values) % 2 != 0: |
78 | 79 |
return |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1129 | 1129 |
up_down_find[index].owner = stream_line[index] |
1130 | 1130 |
key.Freeze = True |
1131 | 1131 |
break |
1132 |
|
|
1133 |
return True |
|
1132 | 1134 |
except Exception as ex: |
1133 | 1135 |
message = f"error occurred({repr(ex)}) in {sys.exc_info()[-1].tb_frame.f_code.co_filename}:" \ |
1134 | 1136 |
f"{sys.exc_info()[-1].tb_lineno}" |
1135 | 1137 |
self.addMessage.emit(MessageType.Error, message) |
1136 | 1138 |
|
1139 |
return False |
|
1140 |
|
|
1137 | 1141 |
|
1138 | 1142 |
def on_recognize_line(self): |
1139 | 1143 |
"""recognize lines in selected area""" |
내보내기 Unified diff