[python-win32] Re: How to get win32com events .. in my main class?
Roger Upole
rwupole at msn.com
Tue Dec 6 20:31:02 CET 2005
The class instance that's passed to your dispatch class
methods is actually the original COM object, so you
ought to be able to set an attribute on it to communicate
that the event was called. In other words, in your OnHalt
method, add something like self.OnHaltCalled=True,
and then you can check for it in your MyApp_InterfaceManager
instance with self.app.OnHaltCalled
hth
Roger
"Ask the ToeCutter - HE knows who I am !"
More information about the Python-win32
mailing list