11 |
11 |
12 from PyQt4.QtGui import * |
12 from PyQt4.QtGui import * |
13 from PyQt4.QtCore import * |
13 from PyQt4.QtCore import * |
14 |
14 |
15 E5LedRectangular = 0 |
15 E5LedRectangular = 0 |
16 E5LedCircular = 1 |
16 E5LedCircular = 1 |
|
17 |
17 |
18 |
18 class E5Led(QWidget): |
19 class E5Led(QWidget): |
19 """ |
20 """ |
20 Class implementing a LED widget. |
21 Class implementing a LED widget. |
21 """ |
22 """ |
22 def __init__(self, parent = None, color = None, shape = E5LedCircular, rectRatio = 1): |
23 def __init__(self, parent=None, color=None, shape=E5LedCircular, rectRatio=1): |
23 """ |
24 """ |
24 Constructor |
25 Constructor |
25 |
26 |
26 @param parent reference to parent widget (QWidget) |
27 @param parent reference to parent widget (QWidget) |
27 @param color color of the LED (QColor) |
28 @param color color of the LED (QColor) |