diff -r 10516539f238 -r 0a02c433f52d Project/CreateDialogCodeDialog.py --- a/Project/CreateDialogCodeDialog.py Fri Oct 18 23:00:41 2013 +0200 +++ b/Project/CreateDialogCodeDialog.py Fri Nov 01 15:48:48 2013 +0100 @@ -114,7 +114,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""" @@ -142,7 +143,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>""" @@ -159,7 +161,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>""" @@ -260,8 +263,8 @@ else: method = "on_{0}_{1}".format( name, metaMethod.signature().split("(")[0]) - method2 = "{0}({1})".format(method, - ", ".join( + method2 = "{0}({1})".format( + method, ", ".join( [self.__mapType(t) for t in metaMethod.parameterTypes()])) @@ -322,7 +325,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>""" @@ -390,7 +394,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""" @@ -425,7 +430,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>""" @@ -503,7 +509,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>""")\