Source

PunkyBrowster / examples / hello_qwebview.py

"""
Run this program to make sure that the QWebView widgets works as expected.
"""

URL = './hello_punky.html'

from PyQt4.QtCore import QUrl
from PyQt4.QtGui import QApplication
from PyQt4.QtWebKit import QWebView

app = QApplication([])

webview = QWebView()
webview.setUrl(QUrl(URL))
webview.show()

app.exec_()