Preferences/ConfigurationPages/ConfigurationPageBase.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3145
a9de05d4a22f
--- a/Preferences/ConfigurationPages/ConfigurationPageBase.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/ConfigurationPageBase.py	Fri Oct 18 23:00:41 2013 +0200
@@ -10,7 +10,8 @@
 from __future__ import unicode_literals    # __IGNORE_WARNING__
 
 from PyQt4.QtCore import pyqtSlot
-from PyQt4.QtGui import QWidget, QIcon, QPixmap, QColor, QColorDialog, QFontDialog
+from PyQt4.QtGui import QWidget, QIcon, QPixmap, QColor, QColorDialog, \
+    QFontDialog
 
 
 class ConfigurationPageBase(QWidget):
@@ -35,7 +36,7 @@
         """
         Public method to save the current state of the widget.
         """
-        return None
+        return
         
     def setState(self, state):
         """
@@ -45,14 +46,16 @@
         """
         return
         
-    def initColour(self, colourKey, button, prefMethod, byName=False, hasAlpha=False):
+    def initColour(self, colourKey, button, prefMethod, byName=False,
+                   hasAlpha=False):
         """
         Public method to initialize a colour selection button.
         
         @param colourKey key of the colour resource (string)
         @param button reference to a button to show the colour on (QPushButton)
         @param prefMethod preferences method to get the colour
-        @keyparam byName flag indicating to retrieve/save by colour name (boolean)
+        @keyparam byName flag indicating to retrieve/save by colour name
+            (boolean)
         @keyparam hasAlpha flag indicating to allow alpha channel (boolean)
         """
         colour = QColor(prefMethod(colourKey))
@@ -76,7 +79,8 @@
         hasAlpha = button.property("hasAlpha")
         
         if hasAlpha:
-            colour = QColorDialog.getColor(self.__coloursDict[colorKey][0], None, "",
+            colour = QColorDialog.getColor(
+                self.__coloursDict[colorKey][0], None, "",
                 QColorDialog.ShowAlphaChannel)
         else:
             colour = QColorDialog.getColor(self.__coloursDict[colorKey][0])

eric ide

mercurial