[python-win32] COM Events
Phil Hornby
phil.hornby at accutest.co.uk
Fri Jul 9 10:12:41 CEST 2004
Okay guys - probably being REALLY dumb - but I have a COM server that I am
trying to interact with from Python and one of the things that I need to do
is receive event notifications from it...
In VB one way to write the code would be something like this:
"""
Dim WithEvents gMyApp As XYZ.Application
Private Sub gMyApp_OnQuit()
'create application specific OnQuit event handler here..
End Sub
"""
Where the event handler HAS to be called '<object>_<event>'
I can obviously make sure that I have a function with the correct name - but
HOW do I do the WithEvents bit!!??
Thanks in advance...
--
Phil Hornby
More information about the Python-win32
mailing list