개정판 89d42a81
issue #000 Export_To_PAP.py
서버 접속 연결 실패 시 Upload 기능 disabled
Change-Id: I908f5d791487c360079226436d8f5f40dd870ce3
HYTOS/HYTOS/Export_To_PAP.py | ||
---|---|---|
341 | 341 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
342 | 342 |
sys.exc_info()[-1].tb_lineno) |
343 | 343 |
App.mainWnd().addMessage.emit(MessageType.Error, message) |
344 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
|
345 |
|
|
344 | 346 |
|
345 | 347 |
|
346 | 348 |
async def run_connection(self, projectNo): |
... | ... | |
349 | 351 |
self.ui.comboBox_select_PAP_Project.setEnabled(True) |
350 | 352 |
if strToBool(str(result)): |
351 | 353 |
QTimer.singleShot(500, self.done_animation) |
354 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setEnabled(True) |
|
352 | 355 |
else: |
353 | 356 |
QTimer.singleShot(500, self.close_animation) |
357 |
self.ui.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
|
354 | 358 |
|
355 | 359 |
|
356 | 360 |
@asyncio.coroutine |
내보내기 Unified diff