Does anyone know of a simple ‘Hello World’ example for using the Webkit library in Python? I have a GTK window, and inside I want to put Webkit.
With Python/mozembed (Mozilla/Gecko), this is simple:
mozembed = gtkmozembed.MozEmbed() mozembed.load_url('http://google.com/')
..and I have already created my browser, how do I do this with WebKit?
Did you check the Python bindings for the WebKit GTK+ port. In one of the directory there are demos on how to use it, including a browser: python demos/tabbed_browser.py
You could check also the slides of a FOSDEM by Alp Toker on WebKit GTK+ (pdf) Developing hybrid Web/GTK+ rich internet applications.
That should give you good hints for starting.