eric7/VCS/StatusMonitorLed.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
10 10
11 from PyQt6.QtCore import Qt 11 from PyQt6.QtCore import Qt
12 from PyQt6.QtGui import QColor 12 from PyQt6.QtGui import QColor
13 from PyQt6.QtWidgets import QWidget, QInputDialog, QMenu, QHBoxLayout, QLabel 13 from PyQt6.QtWidgets import QWidget, QInputDialog, QMenu, QHBoxLayout, QLabel
14 14
15 from E5Gui.E5Led import E5ClickableLed, E5LedType 15 from E5Gui.EricLed import EricClickableLed, EricLedType
16 16
17 import Preferences 17 import Preferences
18 18
19 19
20 class StatusMonitorLed(E5ClickableLed): 20 class StatusMonitorLed(EricClickableLed):
21 """ 21 """
22 Class implementing a LED to indicate the status of the VCS status monitor 22 Class implementing a LED to indicate the status of the VCS status monitor
23 thread. 23 thread.
24 """ 24 """
25 def __init__(self, project, parent): 25 def __init__(self, project, parent):
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=E5LedType.RECTANGULAR, rectRatio=1.0) 33 parent, shape=EricLedType.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 = {

eric ide

mercurial