8 """ |
8 """ |
9 |
9 |
10 import contextlib |
10 import contextlib |
11 |
11 |
12 from PyQt6.QtCore import ( |
12 from PyQt6.QtCore import ( |
|
13 Q_ARG, |
|
14 QMetaObject, |
|
15 QSettings, |
|
16 Qt, |
|
17 QThread, |
|
18 QtMsgType, |
13 qInstallMessageHandler, |
19 qInstallMessageHandler, |
14 Qt, |
|
15 Q_ARG, |
|
16 QSettings, |
|
17 QtMsgType, |
|
18 QThread, |
|
19 QMetaObject, |
|
20 ) |
20 ) |
21 from PyQt6.QtWidgets import QErrorMessage, QDialog |
21 from PyQt6.QtWidgets import QDialog, QErrorMessage |
22 |
22 |
|
23 from eric7 import Globals, Preferences, Utilities |
23 from eric7.EricWidgets.EricApplication import ericApp |
24 from eric7.EricWidgets.EricApplication import ericApp |
24 |
|
25 from eric7 import Globals, Preferences, Utilities |
|
26 |
|
27 |
25 |
28 _msgHandlerDialog = None |
26 _msgHandlerDialog = None |
29 _origMsgHandler = None |
27 _origMsgHandler = None |
30 |
28 |
31 _filterSettings = QSettings( |
29 _filterSettings = QSettings( |