[python-win32] Handling COM events in a python thread

Ujjaval Suthar usmelbourne at gmail.com
Fri Sep 5 10:19:27 CEST 2008


Hi all,

I have a COM control which fires a status event called
ProcessingDataAvailable(). The COM control has a method call AddData() with
some data parameters.

Using python, in a simple program, I can instantiate COM object via Dispatch
and call AddData() method successfully.

Now, I want to have a thread which keeps running and listening for
ProcessingDataAvailable() event and do some processing in my program.

Can somebody please give me a simple example code that shows how it can be
done? I'm very new to this kind of programming.


Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080905/d90995fb/attachment.htm>


More information about the python-win32 mailing list