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!
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With