11 import os |
11 import os |
12 |
12 |
13 from PyQt6.QtCore import Qt, QObject |
13 from PyQt6.QtCore import Qt, QObject |
14 from PyQt6.QtGui import QKeySequence |
14 from PyQt6.QtGui import QKeySequence |
15 |
15 |
16 from EricWidgets.EricApplication import ericApp |
16 try: |
17 from EricWidgets import EricMessageBox |
17 from eric7.EricGui import EricPixmapCache |
18 from EricGui.EricAction import EricAction |
18 except ImportError: |
19 |
19 from UI import PixmapCache as EricPixmapCache |
20 import UI.PixmapCache |
20 from eric7.EricGui.EricAction import EricAction |
|
21 from eric7.EricWidgets import EricMessageBox |
|
22 from eric7.EricWidgets.EricApplication import ericApp |
21 |
23 |
22 |
24 |
23 class TimeTracker(QObject): |
25 class TimeTracker(QObject): |
24 """ |
26 """ |
25 Class implementing the time tracker object. |
27 Class implementing the time tracker object. |
73 else "clock-{0}".format(self.__iconSuffix) |
75 else "clock-{0}".format(self.__iconSuffix) |
74 ) |
76 ) |
75 self.__ui.addSideWidget( |
77 self.__ui.addSideWidget( |
76 self.__ui.BottomSide, |
78 self.__ui.BottomSide, |
77 self.__widget, |
79 self.__widget, |
78 UI.PixmapCache.getIcon(os.path.join("TimeTracker", "icons", iconName)), |
80 EricPixmapCache.getIcon(os.path.join("TimeTracker", "icons", iconName)), |
79 self.tr("Time Tracker"), |
81 self.tr("Time Tracker"), |
80 ) |
82 ) |
81 |
83 |
82 self.__activateAct = EricAction( |
84 self.__activateAct = EricAction( |
83 self.tr("Time Tracker"), |
85 self.tr("Time Tracker"), |