--- a/ProjectPyramid/PyramidRoutesDialog.py Sat Sep 28 13:34:57 2013 +0200 +++ b/ProjectPyramid/PyramidRoutesDialog.py Fri Oct 25 18:51:52 2013 +0200 @@ -27,7 +27,8 @@ """ Constructor - @param project reference to the project object (ProjectPyramid.Project.Project) + @param project reference to the project object + (ProjectPyramid.Project.Project) @param parent reference to the parent widget (QWidget) """ super().__init__(parent) @@ -45,7 +46,8 @@ def finish(self): """ - Public slot called when the process finished or the user pressed the button. + Public slot called when the process finished or the user pressed the + button. """ if self.proc is not None and \ self.proc.state() != QProcess.NotRunning: @@ -63,7 +65,8 @@ self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) - self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason) + self.buttonBox.button(QDialogButtonBox.Close).setFocus( + Qt.OtherFocusReason) def on_buttonBox_clicked(self, button): """ @@ -122,7 +125,6 @@ """ Public slot used to start the process. - @param command command to start (string) @param projectPath path to the Pyramid project (string) @return flag indicating a successful start of the process """ @@ -136,7 +138,8 @@ self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) - self.buttonBox.button(QDialogButtonBox.Cancel).setFocus(Qt.OtherFocusReason) + self.buttonBox.button(QDialogButtonBox.Cancel).setFocus( + Qt.OtherFocusReason) self.proc = QProcess() @@ -155,7 +158,8 @@ if not procStarted: self.buttonBox.setFocus() self.inputGroup.setEnabled(False) - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8('Process Generation Error'), self.trUtf8( 'The process {0} could not be started. ' @@ -175,8 +179,8 @@ """ if self.proc is not None: out = str(self.proc.readAllStandardOutput(), - Preferences.getSystem("IOEncoding"), - 'replace') + Preferences.getSystem("IOEncoding"), + 'replace') self.buffer += out def __readStderr(self): @@ -188,8 +192,8 @@ """ if self.proc is not None: err = str(self.proc.readAllStandardError(), - Preferences.getSystem("IOEncoding"), - 'replace') + Preferences.getSystem("IOEncoding"), + 'replace') self.errorGroup.show() self.errors.insertPlainText(err) self.errors.ensureCursorVisible()