ProjectPyramid/DistributionTypeSelectionDialog.py

changeset 57
e654970c913e
parent 56
c7adc68350dd
parent 54
71c83a661c83
child 63
f249a66da0d5
--- a/ProjectPyramid/DistributionTypeSelectionDialog.py	Sun Oct 27 22:43:17 2013 +0100
+++ b/ProjectPyramid/DistributionTypeSelectionDialog.py	Tue Oct 29 22:30:48 2013 +0100
@@ -18,12 +18,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.
     """
@@ -31,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 projectPath path of the Pyramid project (string)
         @param parent reference to the parent widget (QWidget)
         """
@@ -58,20 +61,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