I came across PyWebKitGtk and had to try it.
A browser, in 14 lines.
#!/usr/bin/env python
import gtk
import webkit
import gobject
gobject.threads_init()
win = gtk.Window()
bro = webkit.WebView()
bro.open("http://www.google.com")
win.add(bro)
win.show_all()
gtk.main()
And the obligatory screenshot:

Advertisements
wow this is cool. thanks for posting it
Very Nice!!!
Nice one, this was exactly what I was searching for. Synaptic sorted the dependencies for me too.
python-webkit
python-webkit-dev
Here’s the equivalent for Python with GObject introspection: http://paste.ubuntu.com/1597158/