E5Gui/E5Led.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2990
583beaf0b4b8
child 3145
a9de05d4a22f
--- a/E5Gui/E5Led.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/E5Gui/E5Led.py	Fri Oct 18 23:00:41 2013 +0200
@@ -12,7 +12,8 @@
 from __future__ import unicode_literals    # __IGNORE_WARNING__
 
 from PyQt4.QtCore import Qt, QSize
-from PyQt4.QtGui import QWidget, QColor, QRadialGradient, QPalette, QPainter, QBrush
+from PyQt4.QtGui import QWidget, QColor, QRadialGradient, QPalette, QPainter, \
+    QBrush
 
 E5LedRectangular = 0
 E5LedCircular = 1
@@ -22,14 +23,15 @@
     """
     Class implementing a LED widget.
     """
-    def __init__(self, parent=None, color=None, shape=E5LedCircular, rectRatio=1):
+    def __init__(self, parent=None, color=None, shape=E5LedCircular,
+                 rectRatio=1):
         """
         Constructor
         
         @param parent reference to parent widget (QWidget)
         @param color color of the LED (QColor)
         @param shape shape of the LED (E5LedCircular, E5LedRectangular)
-        @param rectRation ratio width to height, if shape is rectangular (float)
+        @param rectRatio ratio width to height, if shape is rectangular (float)
         """
         super(E5Led, self).__init__(parent)
         
@@ -142,7 +144,7 @@
         
     def ratio(self):
         """
-        Public method to return the LED rectangular ratio (width / height).
+        Public method to return the LED rectangular ratio [= width / height].
         
         @return LED rectangular ratio (float)
         """

eric ide

mercurial