개정판 5f7d5696
issue #1048 : 화면/메뉴/툴바 개발 - Exception 발생 시 MainWindow 의 Logs 에 기록
Change-Id: If9767060d1f756e183c3669d067f1f0dd9299f9d
HYTOS/HYTOS/ConfigurationDialog.py | ||
---|---|---|
125 | 125 |
self.ui.comboBox_Decimal.setCurrentIndex(9) |
126 | 126 |
|
127 | 127 |
except Exception as ex: |
128 |
from App import App |
|
129 |
from AppDocData import MessageType |
|
130 |
|
|
128 | 131 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
129 |
self.addMessage.emit(MessageType.Error, message)
|
|
132 |
App.mainWnd().addMessage.emit(MessageType.Error, message)
|
|
130 | 133 |
|
131 | 134 |
|
132 | 135 |
def load_data(self): |
... | ... | |
195 | 198 |
if index > -1: |
196 | 199 |
self.ui.comboBox_Roughness.setCurrentIndex(index) |
197 | 200 |
except Exception as ex: |
201 |
from App import App |
|
202 |
from AppDocData import MessageType |
|
203 |
|
|
198 | 204 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
199 |
self.addMessage.emit(MessageType.Error, message)
|
|
205 |
App.mainWnd().addMessage.emit(MessageType.Error, message)
|
|
200 | 206 |
|
201 | 207 |
|
202 | 208 |
def getIndexByValue(self, control, value): |
내보내기 Unified diff