5 |
5 |
6 """ |
6 """ |
7 Module implementing a starter for the system tray. |
7 Module implementing a starter for the system tray. |
8 """ |
8 """ |
9 |
9 |
10 import sys |
10 import contextlib |
11 import os |
11 import os |
12 import pathlib |
12 import pathlib |
13 import contextlib |
13 import sys |
14 |
14 |
15 from PyQt6.QtCore import QProcess, QSettings |
15 from PyQt6.QtCore import QProcess, QSettings |
16 from PyQt6.QtGui import QCursor |
16 from PyQt6.QtGui import QCursor |
17 from PyQt6.QtWidgets import QSystemTrayIcon, QMenu, QDialog, QApplication |
17 from PyQt6.QtWidgets import QApplication, QDialog, QMenu, QSystemTrayIcon |
18 |
18 |
|
19 from eric7 import Globals, Preferences, Utilities |
|
20 from eric7.EricGui import EricPixmapCache |
19 from eric7.EricWidgets import EricMessageBox |
21 from eric7.EricWidgets import EricMessageBox |
20 from eric7.EricWidgets.EricApplication import ericApp |
22 from eric7.EricWidgets.EricApplication import ericApp |
21 |
23 from eric7.UI.Info import Program, Version |
22 from eric7 import Globals, Preferences, Utilities |
|
23 from eric7.EricGui import EricPixmapCache |
|
24 from eric7.UI.Info import Version, Program |
|
25 |
24 |
26 |
25 |
27 class TrayStarter(QSystemTrayIcon): |
26 class TrayStarter(QSystemTrayIcon): |
28 """ |
27 """ |
29 Class implementing a starter for the system tray. |
28 Class implementing a starter for the system tray. |
572 |
571 |
573 def __showVersions(self): |
572 def __showVersions(self): |
574 """ |
573 """ |
575 Private slot to handle the Versions dialog. |
574 Private slot to handle the Versions dialog. |
576 """ |
575 """ |
577 from PyQt6.QtCore import qVersion, PYQT_VERSION_STR |
|
578 from PyQt6.Qsci import QSCINTILLA_VERSION_STR |
576 from PyQt6.Qsci import QSCINTILLA_VERSION_STR |
|
577 from PyQt6.QtCore import PYQT_VERSION_STR, qVersion |
579 |
578 |
580 try: |
579 try: |
581 try: |
580 try: |
582 from PyQt6 import sip |
581 from PyQt6 import sip |
583 except ImportError: |
582 except ImportError: |