Embed a web browser into a page

lkcl luke.leighton at googlemail.com
Sun Mar 29 08:31:59 EDT 2009


On Feb 12, 9:22 am, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> Carbon Man wrote:
> > Hi,
> > I need to embed a web browser into a python page. I am coming from the MS
> > world where I created an app that all of it's interfaces were actually web
> > pages rendered in an Internet Explorer activex control. There was a object
> > hook that allowed you to call into the host environment from javascript.
> > Basically the host environment would receive the documentComplete event
> > and call a method in the document's Javascript passing in an object
> > reference. That reference would then be available for calls to be made
> > from Javascript back into the host environment.
> > I am just starting to explore the Pythonic programming jungle and I was
> > wondering if there is a way to do something similar that would work
> > cross-platform?
> > I guess there is much more complexity in it when you start to go across
> > o/s platform boundaries. The common web interface would then be Gecko or
> >WebKit? So can someone suggest what would be required to build a
> > cross-platform Python app that was capable of browsing HTML files,
> > receiving events from the browser, and that allows the embedded page to
> > call host Python modules from Javascript via an object reference? Or I am
> > asking too much :)
>

> The only thing that might work is Qt +webkitthat is used as it's browser.

 you mean "its browser".

> Everything else is not cross platform.

not quite true - python-hulahop should theoretically compile for win32
- it's just that nobody in their right mind has tried it :)

l.



More information about the Python-list mailing list