[python-win32] com event question
Tim Newsham
newsham at lava.net
Wed Jun 28 23:20:58 CEST 2006
On Wed, 28 Jun 2006, Tim Newsham wrote:
> I have an IWebBrowserApp pointer and I want to get events from
> the DWebBrowserEvents interface (the BeforeNavigate2 event,
> in particular). If I understand correctly, I should make an
> event class:
>
> class EventHandler(object) :
> def BeforeNavigate2(self, *args) :
> print "before nav2 fired", args
As usual, I figured this out right after asking (one of the best
reasons to ask :). The
gen_py/EAB22AC0-30C1-11CF-A7EB-0000C05BAE0Bx0x1x1.py file lists
the method name as OnBeforeNavigate2. Using that name, I am
receiving callbacks.
Tim Newsham
http://www.lava.net/~newsham/
More information about the Python-win32
mailing list