Re: [comtypes-users] "this" parameter to COM event functions

2008-10-31 Thread Thomas Heller
James Teh schrieb: > Hi all, > > I am a little confused about the "this" parameter to COM events. > > When one wants to receive COM events, one does something like the following: > self._advise = comtypes.client.GetEvents(self._server, Sink()) > where the Sink class has methods such as: > def onE

[comtypes-users] "this" parameter to COM event functions

2008-10-30 Thread James Teh
Hi all, I am a little confused about the "this" parameter to COM events. When one wants to receive COM events, one does something like the following: self._advise = comtypes.client.GetEvents(self._server, Sink()) where the Sink class has methods such as: def onEvent(self, this, arg1, arg2):