ProjectDjango/DjangoDialog.py

changeset 6
80815349eef4
parent 2
1e97424fda0c
child 26
2dd206cd1aa2
--- a/ProjectDjango/DjangoDialog.py	Sun Mar 24 15:29:37 2013 +0100
+++ b/ProjectDjango/DjangoDialog.py	Sun Mar 24 15:35:23 2013 +0100
@@ -27,10 +27,10 @@
     shows the output of the process. The dialog is modal,
     which causes a synchronized execution of the process.
     """
-    def __init__(self, text, fixed = False, linewrap = True, 
-                 msgSuccess = None, msgError = None, 
-                 saveFilters = None, 
-                 parent = None):
+    def __init__(self, text, fixed=False, linewrap=True,
+                 msgSuccess=None, msgError=None,
+                 saveFilters=None,
+                 parent=None):
         """
         Constructor
         
@@ -108,7 +108,7 @@
         if self.argsLists:
             args = self.argsLists[0][:]
             del self.argsLists[0]
-            self.startProcess(args, self.workingDir, mergedOutput = self.mergedOutput)
+            self.startProcess(args, self.workingDir, mergedOutput=self.mergedOutput)
     
     def __procFinished(self, exitCode, exitStatus):
         """
@@ -127,8 +127,8 @@
             self.errorGroup.show()
         self.resultbox.ensureCursorVisible()
     
-    def startProcess(self, args, workingDir = None, showCommand = True, 
-                     mergedOutput = False):
+    def startProcess(self, args, workingDir=None, showCommand=True,
+                     mergedOutput=False):
         """
         Public slot used to start the process.
         
@@ -174,7 +174,7 @@
                 ).format(prog))
         return procStarted
     
-    def startBatchProcesses(self, argsLists, workingDir = None, mergedOutput = False):
+    def startBatchProcesses(self, argsLists, workingDir=None, mergedOutput=False):
         """
         Public slot used to start a batch of processes.
         
@@ -191,7 +191,7 @@
         # start the first process
         args = self.argsLists[0][:]
         del self.argsLists[0]
-        res = self.startProcess(args, self.workingDir, mergedOutput = self.mergedOutput)
+        res = self.startProcess(args, self.workingDir, mergedOutput=self.mergedOutput)
         if not res:
             self.argsLists = []
         
@@ -216,7 +216,7 @@
     
     def __readStdout(self):
         """
-        Private slot to handle the readyReadStdout signal. 
+        Private slot to handle the readyReadStdout signal.
         
         It reads the output of the process, formats it and inserts it into
         the contents pane.

eric ide

mercurial