[python-win32] IE control via DWebBrowserEvents2
Mike Driscoll
mdriscoll at co.marshall.ia.us
Mon Jun 9 15:21:10 CEST 2008
Vaclav Opekar wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">Hello all,
> I'm trying to embed IE to a GTK app and control IE behavior via the
> DWebBrowserEvents2 interface.
> Embedding works, events like OnBeforeNavigate2 or OnNewWindow2 are
> comming fine but when I try to return (from the callback) a Cancel
> value which suppose stop IE from next page loading or new explorer
> window creation, the program either crashes or doesn't prevent IE
> from moving to next page or opening a new window.
>
> Any idea how I could approach this problem?
>
> Bellow are details and code snippets.
>
> Thanks a lot,
> Vasek
>
There's also at least one non-pywin32 solution that I keep hearing about
called the PAMIE project. You might find it helpful:
http://pamie.sourceforge.net/
If nothing else, the source from the project might give you some ideas
on how to approach the problem.
-------------------
Mike Driscoll
Blog: http:\\blog.pythonlibrary.org
Python Extension Building Network: http:\\www.pythonlibrary.org
More information about the python-win32
mailing list