KeyError: _dispobj_ in new python COM server
craig curtin
curtin at ubsw.com
Mon Jan 21 18:18:54 EST 2002
hi mark,
thanks for the response and pointer.
i checked out the examples and found them to very
informative.
the line:
e = DispatchWithEvents("Excel.Application", ExcelEvents)
is the one that wires up the client side (excel) with the
python ExcelEvents class doing the server side work.
i don't think i have the ability to hook into the client
side like this. the vb code from the SDK just has two
subs that it exposes
- IExStoreAsyncEvents_OnDelete
- IExStoreAsyncEvents_OnSave
this is what i'm trying to emulate in my python server.
i guess i just don't understand how the vb code gets
wired together. i was thinking the makepy on the vb
dll would help and i could implement that interface,
but this doesn't seem correct. this is why i was thinking
that i need to wrap the output from makepy.
craig
Mark Hammond <mhammond at skippinet.com.au> wrote in message news:<3C4A2BAF.1020102 at skippinet.com.au>...
> See the docstring for win32com.client.DispatchWithEvents(). It shows
> how to hook events without modifying the generated .py code.
>
> Mark.
More information about the Python-list
mailing list