Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good documentation/tutorial for python webkit [closed]

Tags:

python

webkit

I have found links with basic examples of webkit. but could not find any proper webkit class structure documentation on google.

could anyone suggest good links or documentation for webkit?

Thanks!

like image 503
Yajushi Avatar asked Jun 30 '11 12:06

Yajushi


2 Answers

It appears that there are multiple Python bindings for WebKit.

For the Qt/KDE bindings, there is a fairly detailed tutorial: http://techbase.kde.org/Development/Languages/Python/PyKDE_WebKit_Tutorial.

For the GTK bindings, Ars Technica has an example: http://arstechnica.com/open-source/guides/2009/07/how-to-build-a-desktop-wysiwyg-editor-with-webkit-and-html-5.ars.

like image 175
Mechanical snail Avatar answered Oct 13 '22 00:10

Mechanical snail


The PyWebkitGTK api should be mostly the same as the standard GTK api. You can view some documentation built into the webkit, for example:

import webkit
print webkit.WebView.__doc__

will show signals and properties you can use. You can also use "dir(webkit.WebView)" to show all the methods of the class. You'll see they are very similar to the GTK C documentation, with some differences, for example, void webkit_web_view_select_all(WebkitWebView) is WebView.select_all in Python.

like image 20
NoBugs Avatar answered Oct 12 '22 23:10

NoBugs