Using com eventsinks with python?

Mark Hammond MarkH at ActiveState.com
Tue Sep 4 03:34:47 CEST 2001


Gerson Kurz wrote:

> Can anybody give a quick sample on how to use eventsinks in python?
> See for instance see MSDNs Q194922 for how to register for async
> V24-port events with MSCOMM32.OCX in VB; how do you do that in Python?
> Thanks!
> 

For info on how to use events, see the documentation strings for 
"win32com.client.DispatchWithEvents()" (ie, enter
 >>> import win32com.client
 >>> print win32com.client.DispatchWithEvents.__doc__

and also see the win32com\test\testMSOfficeEvents.py test script.

Mark.




More information about the Python-list mailing list