[python-win32] How to get win32com events .. in my main class?

Laurent Dufréchou Laurent.Dufrechou at free.fr
Wed Dec 7 11:35:08 CET 2005


Thank you a lot !
That just work as you said :)
coool


Roger Upole wrote:

>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 !"
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
>
>  
>


More information about the Python-win32 mailing list