fetch: add ability to fetch into a remote tracking branch
[git-cola.git] / qtpy / QtWebEngineQuick.py
blob717ac94d488a1d41f9f052d20005629d5d8477b3
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 QtWebEngineQuick classes and functions."""
10 from . import (
11 PYQT5,
12 PYQT6,
13 PYSIDE2,
14 PYSIDE6,
15 QtBindingMissingModuleError,
16 QtModuleNotInstalledError,
19 if PYQT5:
20 raise QtBindingMissingModuleError(name="QtWebEngineQuick")
21 elif PYQT6:
22 try:
23 from PyQt6.QtWebEngineQuick import *
24 except ModuleNotFoundError as error:
25 raise QtModuleNotInstalledError(
26 name="QtWebEngineQuick",
27 missing_package="PyQt6-WebEngine",
28 ) from error
29 elif PYSIDE2:
30 raise QtBindingMissingModuleError(name="QtWebEngineQuick")
31 elif PYSIDE6:
32 from PySide6.QtWebEngineQuick import *