A Browser in 14 Lines using Python and Webkit

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:

A browser in 14 lines of python using webkit and gtk.
A browser in 14 lines of python using webkit and gtk.

Advertisements
A Browser in 14 Lines using Python and Webkit

4 thoughts on “A Browser in 14 Lines using Python and Webkit

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s