7 """ |
7 """ |
8 Module implementing the helpbrowser using QWebView. |
8 Module implementing the helpbrowser using QWebView. |
9 """ |
9 """ |
10 |
10 |
11 from PyQt6.QtCore import ( |
11 from PyQt6.QtCore import ( |
12 pyqtSlot, pyqtSignal, QUrl, QUrlQuery, QTimer, QEventLoop, QPoint, QPointF, |
12 pyqtSlot, pyqtSignal, QUrl, QUrlQuery, QTimer, QEventLoop, QPoint, QPointF |
13 QT_VERSION |
|
14 ) |
13 ) |
15 from PyQt6.QtGui import QDesktopServices |
14 from PyQt6.QtGui import QDesktopServices |
16 from PyQt6.QtWebEngineWidgets import ( |
15 from PyQt6.QtWebEngineCore import ( |
17 QWebEnginePage, QWebEngineSettings, QWebEngineScript |
16 QWebEnginePage, QWebEngineSettings, QWebEngineScript, |
|
17 PYQT_WEBENGINE_VERSION |
18 ) |
18 ) |
19 try: |
|
20 from PyQt6.QtWebEngine import PYQT_WEBENGINE_VERSION |
|
21 # __IGNORE_EXCEPTION__ |
|
22 except (AttributeError, ImportError): |
|
23 PYQT_WEBENGINE_VERSION = QT_VERSION |
|
24 from PyQt6.QtWebChannel import QWebChannel |
19 from PyQt6.QtWebChannel import QWebChannel |
25 |
20 |
26 try: |
21 try: |
27 from PyQt6.QtNetwork import QSslConfiguration, QSslCertificate |
22 from PyQt6.QtNetwork import QSslConfiguration, QSslCertificate |
28 SSL_AVAILABLE = True |
23 SSL_AVAILABLE = True |