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
and then use DispatchWithEvents:
provider = pUnkSite.QueryInterface(IID_IServiceProvider)
webapp = provider.QueryService(IID_IWebBrowserApp, IID_IDispatch)
ie = DispatchWithEvents(webapp, EventHandler)
When I do this, I am not receiving any event callbacks. What
am I doing wrong here?
Tim Newsham
http://www.lava.net/~newsham/
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32