Events in win32com

Paul Moore paul.moore at uk.origin-it.com
Tue Dec 19 11:37:22 EST 2000


On Tue, 19 Dec 2000 13:49:23 +0100, Paul Moore
<paul.moore at uk.origin-it.com> wrote:

>If I create an object using
>
>obj = win32com.client.Dispatch(progid)
>
>can I see events from the object?

After scanning Deja, I found an article describing DispatchWithEvents.
The example in the documentation (OnVisible) works fine. But the
OnQuit event doesn't seem to work :-( Basically, the event routine is
never fired. Is this because the event routine has a ByRef "Cancel"
parameter? Or is it something else?

Thanks,
Paul




More information about the Python-list mailing list