ProjectPyramid/PyramidDialog.py

changeset 57
e654970c913e
parent 56
c7adc68350dd
parent 54
71c83a661c83
child 63
f249a66da0d5
diff -r c7adc68350dd -r e654970c913e ProjectPyramid/PyramidDialog.py
--- a/ProjectPyramid/PyramidDialog.py	Sun Oct 27 22:43:17 2013 +0100
+++ b/ProjectPyramid/PyramidDialog.py	Tue Oct 29 22:30:48 2013 +0100
@@ -79,7 +79,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:
@@ -95,7 +96,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)
         
         if self.argsLists:
             args = self.argsLists[0][:]
@@ -146,7 +148,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)
         
         if showArgs:
             self.resultbox.append(command + ' ' + ' '.join(args))
@@ -165,7 +168,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. '
@@ -183,7 +187,8 @@
         @param argsLists list of lists of arguments for the processes
             (list of list of string)
         @param workingDir working directory for the process (string)
-        @return flag indicating a successful start of the first process (boolean)
+        @return flag indicating a successful start of the first process
+            (boolean)
         """
         self.argsLists = argsLists[:]
         self.workingDir = workingDir
@@ -223,8 +228,8 @@
         """
         if self.proc is not None:
             out = str(self.proc.readAllStandardOutput(),
-                Preferences.getSystem("IOEncoding"),
-                'replace')
+                      Preferences.getSystem("IOEncoding"),
+                      'replace')
             self.resultbox.insertPlainText(out)
             self.resultbox.ensureCursorVisible()
             
@@ -239,8 +244,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