The Inspector.py file is a very handy example of adding Webkit inspector.
Unfortunately it seems to be missing some features. For example, when
showing the console (2nd button at bottom left) it shows the console, but
no breadcrumb/splitter like Chromium has. The dock to main window button
also does not work, maybe it could be added with code similar to this?