[python-win32] how to get the interface of an COM object?
Bruce Who
bruce.who.hk at gmail.com
Tue Nov 14 11:43:27 CET 2006
Hi, Thomas
Finally I make it to create a COM object:
class EventSink:
def OnLoadFinished(self):
print 'load finished'
o = comtypes.client.CreateObject("SomeObj2.SomeObj.1", sink=EventSink())
but the EventSink.OnLoadFinished() is never called, and I still donnot
know how to get an interface, :-(
On 11/14/06, Thomas Heller <theller at ctypes.org> wrote:
>
> comtypes can call custom com interfaces:
>
> http://www.python.org/pypi/comtypes
>
> The downside is that there are no docs, yet.
>
> Thomas
>
Bruce Who
More information about the Python-win32
mailing list