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...) |
m (Ochurlaud moved page Development/Languages/Python/PyKDE WebKit Tutorial/webkit1.py to Languages/Python/PyKDE WebKit Tutorial/webkit1.py) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
< | <syntaxhighlight lang="python"> | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
Line 14: | Line 14: | ||
sys.exit(app.exec_()) | sys.exit(app.exec_()) | ||
</ | </syntaxhighlight> |
Latest revision as of 17:39, 10 March 2016
#!/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_())