1 # -----------------------------------------------------------------------------
2 # Copyright © 2014-2015 Colin Duquesnoy
3 # Copyright © 2009- The Spyder development Team
5 # Licensed under the terms of the MIT License
6 # (see LICENSE.txt for details)
7 # -----------------------------------------------------------------------------
9 """Provides QtWebEngine classes and functions."""
16 QtModuleNotInQtVersionError
,
17 QtModuleNotInstalledError
,
22 from PyQt5
.QtWebEngine
import *
23 except ModuleNotFoundError
as error
:
24 raise QtModuleNotInstalledError(
26 missing_package
="PyQtWebEngine",
29 raise QtModuleNotInQtVersionError(name
="QtWebEngine")
31 from PySide2
.QtWebEngine
import *
33 raise QtModuleNotInQtVersionError(name
="QtWebEngine")