File: QtWebKitWidgets.py

package info (click to toggle)
python-anyqt 0.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: python: 4,087; makefile: 192; sh: 3
file content (36 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from . import _api

# Names imported from Qt4's QtWebKit module
__Qt4_QtWebKit = [
    'QGraphicsWebView',
    'QWebFrame',
    'QWebHitTestResult',
    'QWebInspector',
    'QWebPage',
    'QWebView',
]

if _api.USED_API == _api.QT_API_PYQT6:
    from PyQt6.QtWebKitWidgets import *
elif _api.USED_API == _api.QT_API_PYQT5:
    from PyQt5.QtWebKitWidgets import *
elif _api.USED_API == _api.QT_API_PYQT4:
    from PyQt4.QtWebKit import (
        QGraphicsWebView,
        QWebFrame,
        QWebHitTestResult,
        QWebInspector,
        QWebPage,
        QWebView,
    )
elif _api.USED_API == _api.QT_API_PYSIDE:
    from PySide.QtWebKit import (
        QGraphicsWebView,
        QWebFrame,
        QWebHitTestResult,
        QWebInspector,
        QWebPage,
        QWebView,
    )

_api.apply_global_fixes(globals())