9 |
9 |
10 import contextlib |
10 import contextlib |
11 import json |
11 import json |
12 |
12 |
13 from PyQt6.QtCore import ( |
13 from PyQt6.QtCore import ( |
14 pyqtSlot, |
14 QCoreApplication, |
|
15 QEventLoop, |
15 QProcess, |
16 QProcess, |
16 QProcessEnvironment, |
17 QProcessEnvironment, |
17 QCoreApplication, |
18 QThread, |
18 QEventLoop, |
|
19 QTimer, |
19 QTimer, |
20 QThread, |
20 pyqtSlot, |
21 ) |
21 ) |
22 from PyQt6.QtNetwork import QTcpServer, QHostAddress |
22 from PyQt6.QtNetwork import QHostAddress, QTcpServer |
23 |
23 |
|
24 from eric7 import Preferences, Utilities |
24 from eric7.EricWidgets import EricMessageBox |
25 from eric7.EricWidgets import EricMessageBox |
25 |
|
26 from eric7 import Preferences, Utilities |
|
27 |
26 |
28 |
27 |
29 class EricJsonServer(QTcpServer): |
28 class EricJsonServer(QTcpServer): |
30 """ |
29 """ |
31 Class implementing a JSON based server base class. |
30 Class implementing a JSON based server base class. |