Languages/Python/PyKDE WebKit Tutorial/webkit1.py

< Languages‎ | Python/PyKDE WebKit Tutorial
Revision as of 20:34, 29 June 2011 by Neverendingo (talk | contribs) (Text replace - "<code python>" to "<syntaxhighlight lang="python">")
Jump to: navigation, search

<syntaxhighlight lang="python">

  1. !/usr/bin/env python

import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import *

app = QApplication(sys.argv)

web = QWebView() web.load(QUrl("http://kubuntu.org")) web.show()

sys.exit(app.exec_())


Content is available under Creative Commons License SA 4.0 unless otherwise noted.