Help: Capturing COM events
Rush
rusha at data-tech.com
Fri Jun 1 12:45:00 EDT 2001
> In essence--
>
> Create a class that, for every event you're interested in, has a
> method named MyClass.On<eventname>
>
> Call DispatchWithEvents, passing it the CLSID/ProgId of the COM server you're
> interested in, *and* the event-handling class object.
>
> DispatchWithEvents will return an object that (effectively) inherits from both
> the COM server and your event-handling class, and this object's proper
> methods should be called when the COM object fires an event.
>
> This is a simplification, of course, as the framework scheme that supports
> this seems to be *very* complex. Digging through the docstrings and comments
> in win32com.client should help explain more details. But hopefully this
> general overview will be helpful. :)
>
> Jeff Shannon
> Technician/Programmer
> Credit International
Jeff,
Thanks for your response. Yours was a most succinct, understandable
reply. I'll be trying to implement this this afternoon.
More information about the Python-list
mailing list