ProjectPyramid/PyramidDialog.py

changeset 54
71c83a661c83
parent 34
d20f7218d53c
child 57
e654970c913e
diff -r a3ba38d3a25e -r 71c83a661c83 ProjectPyramid/PyramidDialog.py
--- a/ProjectPyramid/PyramidDialog.py	Sat Sep 28 13:34:57 2013 +0200
+++ b/ProjectPyramid/PyramidDialog.py	Fri Oct 25 18:51:52 2013 +0200
@@ -73,7 +73,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:
@@ -89,7 +90,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][:]
@@ -140,7 +142,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))
@@ -159,7 +162,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. '
@@ -177,7 +181,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
@@ -217,8 +222,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()
             
@@ -233,8 +238,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