41 "PyQt could not be imported. Please make sure" |
41 "PyQt could not be imported. Please make sure" |
42 " it is installed and accessible.") |
42 " it is installed and accessible.") |
43 sys.exit(100) |
43 sys.exit(100) |
44 |
44 |
45 try: |
45 try: |
46 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ |
46 from PyQt6 import QtWebEngineWidgets |
|
47 # __IGNORE_WARNING__ __IGNORE_EXCEPTION__ |
47 from PyQt6.QtWebEngineCore import QWebEngineUrlScheme |
48 from PyQt6.QtWebEngineCore import QWebEngineUrlScheme |
48 WEBENGINE_AVAILABLE = True |
49 WEBENGINE_AVAILABLE = True |
49 except ImportError: |
50 except ImportError: |
50 WEBENGINE_AVAILABLE = False |
51 WEBENGINE_AVAILABLE = False |
51 |
52 |