widgets: flake8 and pylint fixes
[git-cola.git] / qtpy / QtWebEngineQuick.py
blob659834a3c6e4e3324441853210d9e06a85f8abf0
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 QtModuleNotInstalledError,
16 QtBindingMissingModuleError,
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', missing_package='PyQt6-WebEngine'
27 ) from error
28 elif PYSIDE2:
29 raise QtBindingMissingModuleError(name='QtWebEngineQuick')
30 elif PYSIDE6:
31 from PySide6.QtWebEngineQuick import *