You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
586 B
16 lines
586 B
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright © 2011 Pierre Raybaut
|
|
# Licensed under the terms of the MIT License
|
|
# (copied from Spyder source code [spyderlib.qt])
|
|
|
|
import os
|
|
|
|
if os.environ['QT_API'] == 'pyqt5':
|
|
from PyQt5.QtWebKitWidgets import QWebPage, QWebView # analysis:ignore
|
|
from PyQt5.QtWebKit import QWebSettings # analysis:ignore
|
|
elif os.environ['QT_API'] == 'pyqt':
|
|
from PyQt4.QtWebKit import (QWebPage, QWebView, # analysis:ignore
|
|
QWebSettings)
|
|
else:
|
|
from PySide.QtWebKit import * # analysis:ignore |