Alpha version of QT GUI #2

This commit is contained in:
Paweł Jastrzębski
2013-06-10 17:43:06 +02:00
parent 1c7ff5c597
commit b101dc780d
3 changed files with 4 additions and 269 deletions
+4 -1
View File
@@ -180,7 +180,10 @@ class Ui_KCC(object):
except Exception as err:
errors = True
type_, value_, traceback_ = sys.exc_info()
tkMessageBox.showerror('KCC Error', "Error on file %s:\n%s\nTraceback:\n%s" % (jobargv[-1], str(err), traceback.format_tb(traceback_)))
QtGui.QMessageBox.critical(MainWindow, 'KCC Error',
"Error on file %s:\n%s\nTraceback:\n%s"
% (jobargv[-1], str(err),traceback.format_tb(traceback_)),
QtGui.QMessageBox.Ok)
self.addMessage('KCC failed to create EPUB!', self.errorIcon)
continue
MainWindow.repaint()