dag/completion: debounce GitLogCompletionModel updates
[git-cola.git] / qtpy / QtWebEngineCore.py
blob76efbbfb2a5c3f94c366bd2a811329cacd88e23f
1 # -----------------------------------------------------------------------------
2 # Copyright © 2009- The Spyder Development Team
4 # Licensed under the terms of the MIT License
5 # (see LICENSE.txt for details)
6 # -----------------------------------------------------------------------------
8 """Provides QtWebEngineCore classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtModuleNotInstalledError,
18 if PYQT5:
19 try:
20 from PyQt5.QtWebEngineCore import *
21 except ModuleNotFoundError as error:
22 raise QtModuleNotInstalledError(
23 name='QtWebEngineCore', missing_package='PyQtWebEngine'
24 ) from error
25 elif PYQT6:
26 try:
27 from PyQt6.QtWebEngineCore import *
28 except ModuleNotFoundError as error:
29 raise QtModuleNotInstalledError(
30 name='QtWebEngineCore', missing_package='PyQt6-WebEngine'
31 ) from error
32 elif PYSIDE2:
33 from PySide2.QtWebEngineCore import *
34 elif PYSIDE6:
35 from PySide6.QtWebEngineCore import *