--- a/Project/CreateDialogCodeDialog.py Mon Oct 14 18:26:25 2013 +0200 +++ b/Project/CreateDialogCodeDialog.py Mon Oct 14 19:30:36 2013 +0200 @@ -112,7 +112,8 @@ self.__module is not None and \ self.classNameCombo.count() == 0: self.__initError = True - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Create Dialog Code"), self.trUtf8( """The file <b>{0}</b> exists but does not contain""" @@ -140,7 +141,8 @@ dlg = uic.loadUi(self.formFile) return dlg.objectName() except (AttributeError, ImportError) as err: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("uic error"), self.trUtf8( """<p>There was an error loading the form <b>{0}</b>""" @@ -157,7 +159,8 @@ dlg = uic.loadUi(self.formFile) return dlg.metaObject().className() except (AttributeError, ImportError) as err: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("uic error"), self.trUtf8( """<p>There was an error loading the form <b>{0}</b>""" @@ -320,7 +323,8 @@ self.slotsView.sortByColumn(0, Qt.AscendingOrder) except (AttributeError, ImportError) as err: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("uic error"), self.trUtf8( """<p>There was an error loading the form <b>{0}</b>""" @@ -388,7 +392,8 @@ template = tmplFile.read() tmplFile.close() except IOError as why: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Code Generation"), self.trUtf8( """<p>Could not open the code template file""" @@ -423,7 +428,8 @@ if not sourceImpl[-1].endswith("\n"): sourceImpl[-1] = "{0}{1}".format(sourceImpl[-1], "\n") except IOError as why: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Code Generation"), self.trUtf8( """<p>Could not open the source file "{0}".</p>""" @@ -501,7 +507,8 @@ srcFile.write("".join(sourceImpl)) srcFile.close() except IOError as why: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Code Generation"), self.trUtf8("""<p>Could not write the source file "{0}".</p>""" """<p>Reason: {1}</p>""")\