WebBrowserProgramming [was: GUIs - A Modest Proposal]

lkcl luke.leighton at gmail.com
Sat Jun 12 12:20:47 EDT 2010


On Jun 10, 6:56 pm, Stephen Hansen <me+list/pyt... at ixokai.io> wrote:

> For example: if you want to embed a CSS-capable web-browser into your
> app? PyQT is actually your best option-- albeit a commercial one if
> you're not open source.. wx/Python haven't yet finished WebKit
> integration(*).

 there are _lots_ other options that i know of.  here are three of the
best:

 * python-comtypes and wrap an IWebBrowser2 instance (out of MSHTML) -
you can get a win32 GDI "handle" id out of this: if you know what
you're doing, you could likely embed that into a gtk or qt app, just
in the same way as you can embed X11 "windows" into pygtk apps, by
knowing the X11 window "handle" id.

 * python-xpcom and python-hulahop on top of xulrunner.  hulahop is
the python "magic glue" between GTK and the XPCOM "access" interface
to the xulrunner web engine.  hulahop allows the xulrunner engine to
be embedded as a python gtk "widget", whilst also giving you a handle
to the xpcom interface.

 * pywebkitgtk - in its current released/stable form, it gives you
juuust enough to embed a web browser, but you can't actually get
access to any of the DOM functions (unlike hulahop/xpcom and comtypes/
MSHTML).

 i'm recording all of these, and any other web browser manipulation
technology that i've ever encountered, here:

 http://wiki.python.org/moin/WebBrowserProgramming

 l.



More information about the Python-list mailing list