def fatal(message):
if QMessageBox:
try:
app = QApplication(sys.argv)
QMessageBox.critical(None, 'Error', str(message))
except BaseException as exc:
print('fatal:', message)
print('during handling of the above error, following error occured')
print('fatal:', exc)
else:
print('fatal:', message)
sys.exit(1)
评论列表
文章目录