[python-win32] Method is actually a property"
Dana Robinson
derobins at scs.uiuc.edu
Fri May 26 01:27:54 CEST 2006
Hello,
I'm trying to use a COM object that has a function with a signature like
this:
HRESULT put_Foo(int i, DOUBLE val);
The code generated by makepy includes this:
# The method Foo is actually a property, but must be used as a method to
correctly pass the arguments
def Foo(self, i=defaultNamedNotOptArg):
"""property Foo"""
return self._oleobj_.InvokeTypes(30, LCID, 2, (4, 0), ((3,
1),),i)
How do I set this? If I try to call Foo(0, 1.0) it (obviously) complains
about an incorrect number of arguments. How do I pass it the double?
Thanks,
Dana
More information about the Python-win32
mailing list