Preferences/ViewProfileDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2677
3d4277929fb3
parent 3010
befeff46ec0f
child 3145
a9de05d4a22f
diff -r 9986ec0e559a -r 10516539f238 Preferences/ViewProfileDialog.py
--- a/Preferences/ViewProfileDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ViewProfileDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -19,7 +19,8 @@
     """
     Class implementing a dialog to configure the various view profiles.
     """
-    def __init__(self, layout, editVisibilities, debugVisibilities, parent=None):
+    def __init__(self, layout, editVisibilities, debugVisibilities,
+                 parent=None):
         """
         Constructor
         
@@ -29,6 +30,7 @@
         @param debugVisibilities list  of flags giving the visibilities
             of the various parts for the 'debug' view profile (list of boolean)
         @param parent parent widget of this dialog (QWidget)
+        @exception ValueError raised to indicate an invalid layout
         """
         super(ViewProfileDialog, self).__init__(parent)
         
@@ -38,7 +40,8 @@
         elif self.__layout == "Sidebars":
             self.ui = Ui_ViewProfileSidebarsDialog()
         else:
-            raise ValueError("Illegal layout given ({0}).".format(self.__layout))
+            raise ValueError(
+                "Illegal layout given ({0}).".format(self.__layout))
         self.ui.setupUi(self)
         
         if self.__layout in ["Toolboxes", "Sidebars"]:

eric ide

mercurial