Languages/Python/PyKDE WebKit Tutorial/webkit1.py: Difference between revisions
(New page: <code python> #!/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(Q...) |
Neverendingo (talk | contribs) m (Text replace - "<code python>" to "<syntaxhighlight lang="python">") |
||
Line 1: | Line 1: | ||
< | <syntaxhighlight lang="python"> | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
Revision as of 20:34, 29 June 2011
<syntaxhighlight lang="python">
- !/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_())