ProjectPyramid/DistributionTypeSelectionDialog.py

changeset 54
71c83a661c83
parent 34
d20f7218d53c
child 57
e654970c913e
diff -r a3ba38d3a25e -r 71c83a661c83 ProjectPyramid/DistributionTypeSelectionDialog.py
--- a/ProjectPyramid/DistributionTypeSelectionDialog.py	Sat Sep 28 13:34:57 2013 +0200
+++ b/ProjectPyramid/DistributionTypeSelectionDialog.py	Fri Oct 25 18:51:52 2013 +0200
@@ -12,12 +12,14 @@
 
 from E5Gui import E5MessageBox
 
-from .Ui_DistributionTypeSelectionDialog import Ui_DistributionTypeSelectionDialog
+from .Ui_DistributionTypeSelectionDialog import \
+    Ui_DistributionTypeSelectionDialog
 
 import Preferences
 
 
-class DistributionTypeSelectionDialog(QDialog, Ui_DistributionTypeSelectionDialog):
+class DistributionTypeSelectionDialog(
+        QDialog, Ui_DistributionTypeSelectionDialog):
     """
     Class implementing a dialog to select the distribution file formats.
     """
@@ -25,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 projectPath path of the Pyramid project (string)
         @param parent reference to the parent widget (QWidget)
         """
@@ -52,20 +55,24 @@
             else:
                 if not finished:
                     errMsg = self.trUtf8(
-                        "The python setup.py command did not finish within 30s.")
+                        "The python setup.py command did not finish within"
+                        " 30s.")
         else:
             errMsg = self.trUtf8("Could not start the pcreate executable.")
         if not errMsg:
             for line in output.splitlines():
                 line = line.strip()
                 if line.startswith("--formats="):
-                    format, description = line.replace("--formats=", "").split(None, 1)
-                    itm = QListWidgetItem("{0} ({1})".format(format, description),
-                                          self.formatsList)
+                    format, description = line.replace("--formats=", "")\
+                        .split(None, 1)
+                    itm = QListWidgetItem(
+                        "{0} ({1})".format(format, description),
+                        self.formatsList)
                     itm.setFlags(itm.flags() | Qt.ItemIsUserCheckable)
                     itm.setCheckState(Qt.Unchecked)
         else:
-            E5MessageBox.critical(None,
+            E5MessageBox.critical(
+                None,
                 self.trUtf8('Process Generation Error'),
                 errMsg)
     

eric ide

mercurial