Bruno Desthuilliers a écrit :
<...>
2/ don't bother reading anything from someone named 'castironpi', it's
one of our currently active resident troll, and he is worse than
clueless.
Actually, I found his response to the point, his sample code helpful,
and his solution similar to yours.
Hi,
I've been looking at the client side com stuff in __init__.py in the
client subdirectory under win32com, and some of the routines do exactly
that. Certainly DispatchWithEvents tries to generate that, and I
thought Dispatch does before returning a late binding object.
Hope this helps,
Bob
T
t\__init__.py", line
503, in __setattr__
d.__setattr__(attr, value)
File "D:\PYTHON22\Lib\site-packages\win32com\client\__init__.py", line
463, in __setattr__
self._oleobj_.Invoke(*(args + (value,) + defArgs))
TypeError: Objects of type 'instance method' can