1 # -*- coding: utf-8 -*-
3 # Copyright © 2014-2015 Colin Duquesnoy
4 # Copyright © 2009- The Spyder development Team
6 # Licensed under the terms of the MIT License
7 # (see LICENSE.txt for details)
10 Provides QtWebEngineWidgets classes and functions.
13 from . import PYQT5
,PYSIDE2
, PYQT4
, PYSIDE
, PythonQtError
16 # To test if we are using WebEngine or WebKit
22 from PyQt5
.QtWebEngineWidgets
import QWebEnginePage
23 from PyQt5
.QtWebEngineWidgets
import QWebEngineView
24 from PyQt5
.QtWebEngineWidgets
import QWebEngineSettings
25 # Based on the work at https://github.com/spyder-ide/qtpy/pull/203
26 from PyQt5
.QtWebEngineWidgets
import QWebEngineProfile
28 from PyQt5
.QtWebKitWidgets
import QWebPage
as QWebEnginePage
29 from PyQt5
.QtWebKitWidgets
import QWebView
as QWebEngineView
30 from PyQt5
.QtWebKit
import QWebSettings
as QWebEngineSettings
33 from PySide2
.QtWebEngineWidgets
import QWebEnginePage
34 from PySide2
.QtWebEngineWidgets
import QWebEngineView
35 from PySide2
.QtWebEngineWidgets
import QWebEngineSettings
36 # Based on the work at https://github.com/spyder-ide/qtpy/pull/203
37 from PySide2
.QtWebEngineWidgets
import QWebEngineProfile
39 from PyQt4
.QtWebKit
import QWebPage
as QWebEnginePage
40 from PyQt4
.QtWebKit
import QWebView
as QWebEngineView
41 from PyQt4
.QtWebKit
import QWebSettings
as QWebEngineSettings
44 from PySide
.QtWebKit
import QWebPage
as QWebEnginePage
45 from PySide
.QtWebKit
import QWebView
as QWebEngineView
46 from PySide
.QtWebKit
import QWebSettings
as QWebEngineSettings
49 raise PythonQtError('No Qt bindings could be found')