posted on: 2008-09-24 15:56:56
It doesn't get any simpler than this, no forward backward book marks address bar. Nothing. Just a browser window.
>It doesn't get any simpler than this, no forward backward book marks address bar. Nothing. Just a browser window.
It will use java script
#!/usr/bin/env python from PyQt4 import QtWebKit,QtGui,QtCore import sys class htmlViewer(QtWebKit.QWebView): def __init__(self,url, parent=None): QtWebKit.QWebView.__init__(self,parent) self.setUrl(QtCore.QUrl(url)) if __name__=="__main__": app = QtGui.QApplication(sys.argv) if len(sys.argv)>1: myurl = sys.argv[1] else: myurl = "http://www.google.com" widget = htmlViewer(myurl) widget.show() sys.exit(app.exec_())
This uses QtWebKit, which is similar to the khtml engine. It doesn't do the flash, so Ill look into that. I doubt you'll find a simpler lighter weight, no feature broswer. Really I use this for rendering local html files from python programs.
Comments
create comment?