E5Gui/E5Led.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
27 @param parent reference to parent widget (QWidget) 27 @param parent reference to parent widget (QWidget)
28 @param color color of the LED (QColor) 28 @param color color of the LED (QColor)
29 @param shape shape of the LED (E5LedCircular, E5LedRectangular) 29 @param shape shape of the LED (E5LedCircular, E5LedRectangular)
30 @param rectRation ratio width to height, if shape is rectangular (float) 30 @param rectRation ratio width to height, if shape is rectangular (float)
31 """ 31 """
32 QWidget.__init__(self, parent) 32 super().__init__(parent)
33 33
34 if color is None: 34 if color is None:
35 color = QColor("green") 35 color = QColor("green")
36 36
37 self.__led_on = True 37 self.__led_on = True

eric ide

mercurial