E5Gui/E5Led.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
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)

eric ide

mercurial