Languages/Python/PyKDE WebKit Tutorial/webkit1.py: Difference between revisions

From KDE TechBase
(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...)
 
m (Text replace - "<code python>" to "<syntaxhighlight lang="python">")
Line 1: Line 1:
<code python>
<syntaxhighlight lang="python">
#!/usr/bin/env python
#!/usr/bin/env python



Revision as of 20:34, 29 June 2011

<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_())