개정판 c4691897
issue #655: processing msg
DTI_PID/DTI_PID/TrainingImageListDialog.py | ||
---|---|---|
168 | 168 |
from PIL import Image |
169 | 169 |
import math |
170 | 170 |
try: |
171 |
qmsg = QMessageBox(QMessageBox.Information,'알림' ,'학습 파일을 생성중입니다.') |
|
172 |
#qmsg.setWindowTitle('알림') |
|
173 |
#qmsg.setIcon(QMessageBox.Information) |
|
174 |
#qmsg.setText('학습 파일을 생성중입니다.') |
|
175 |
qmsg.show() |
|
171 | 176 |
appDocData = AppDocData.instance() |
172 | 177 |
project = appDocData.getCurrentProject() |
173 | 178 |
self.oCRLang = appDocData.getCurrentProject().getName() |
... | ... | |
345 | 350 |
os.rename(os.path.join(dataPath, self.oCRLang + '.traineddata'), os.path.join(tesseractPath, self.oCRLang + '.traineddata')) |
346 | 351 |
|
347 | 352 |
self.deleteMidProcessFile() |
353 |
qmsg.close() |
|
354 |
QMessageBox.about(self, "알림", '성공적으로 적용하였습니다.') |
|
348 | 355 |
|
349 | 356 |
except Exception as ex: |
350 | 357 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
... | ... | |
355 | 362 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
356 | 363 |
finally: |
357 | 364 |
self.deleteMidProcessFile() |
365 |
qmsg.close() |
|
358 | 366 |
os.chdir(originPath) |
359 | 367 |
|
360 | 368 |
''' |
내보내기 Unified diff