ProjectPyramid/PyramidRoutesDialog.py

changeset 57
e654970c913e
parent 56
c7adc68350dd
parent 54
71c83a661c83
child 63
f249a66da0d5
diff -r c7adc68350dd -r e654970c913e ProjectPyramid/PyramidRoutesDialog.py
--- a/ProjectPyramid/PyramidRoutesDialog.py	Sun Oct 27 22:43:17 2013 +0100
+++ b/ProjectPyramid/PyramidRoutesDialog.py	Tue Oct 29 22:30:48 2013 +0100
@@ -33,7 +33,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(PyramidRoutesDialog, self).__init__(parent)
@@ -51,7 +52,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:
@@ -69,7 +71,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):
         """
@@ -128,7 +131,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
         """
@@ -142,7 +144,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()
         
@@ -161,7 +164,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. '
@@ -181,8 +185,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):
@@ -194,8 +198,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()

eric ide

mercurial