10 |
10 |
11 from PyQt5.QtCore import Qt |
11 from PyQt5.QtCore import Qt |
12 from PyQt5.QtGui import QColor |
12 from PyQt5.QtGui import QColor |
13 from PyQt5.QtWidgets import QWidget, QInputDialog, QMenu, QHBoxLayout, QLabel |
13 from PyQt5.QtWidgets import QWidget, QInputDialog, QMenu, QHBoxLayout, QLabel |
14 |
14 |
15 from E5Gui.E5Led import E5ClickableLed, E5LedRectangular |
15 from E5Gui.E5Led import E5ClickableLed, E5LedType |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 |
18 |
19 |
19 |
20 class StatusMonitorLed(E5ClickableLed): |
20 class StatusMonitorLed(E5ClickableLed): |
28 |
28 |
29 @param project reference to the project object (Project.Project) |
29 @param project reference to the project object (Project.Project) |
30 @param parent reference to the parent object (QWidget) |
30 @param parent reference to the parent object (QWidget) |
31 """ |
31 """ |
32 super().__init__( |
32 super().__init__( |
33 parent, shape=E5LedRectangular, rectRatio=1.0) |
33 parent, shape=E5LedType.RECTANGULAR, rectRatio=1.0) |
34 |
34 |
35 self.__vcsClean = True |
35 self.__vcsClean = True |
36 self.project = project |
36 self.project = project |
37 |
37 |
38 self.vcsMonitorLedColors = { |
38 self.vcsMonitorLedColors = { |