views:

187

answers:

2

The http://code.google.com/p/pywebkitgtk/ looks great but it seems to be running on linux only.

Does anybody know if there is something similar but cross-platform?

If not what can be the alternatives to make with Python a simple web-browser that can run on Windows, MAC os and linux?

Thanks in advance

Update: Does anybody has some information about wxWebKit ?

A: 

If you don't mind modifying code in an open-source project, you can attempt making Grail run in a modern version of Python.

ΤΖΩΤΖΙΟΥ
+2  A: 

Qt (which has Python bindings with PyQt or PySide) offers Webkit (the same engine as Safari). Making a simple cross-platform browser is trivially implemented with this.

To show how easy this really is (example taken from the link):

#!/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://www.stackoverflow.com"))
web.show()

sys.exit(app.exec_())
ChristopheD