Win32Com question - Property Let in VB

John J. Lee jjl at pobox.com
Fri Jun 20 13:46:04 EDT 2003


"Max Barry" <max at ford-consulting.com> writes:

> Hi, I have a vb ActiveX DLL that I wrote that contains a Let property that
> keeps raising a error in python.  The Let property has two variables.  An
> index and a value.  The error that is raised is: TypeError: Value() takes at
> most 2 arguments (3 given).
> An example of the python:
>  class someclass:
>     def foo(self):
> 	TheObject = MyObject.MyClass
> 	self.test(TheObject)
> 
>     def test(self, Result):
>         Result.Value(int(1), 10)

You're passing a class object (aka a class) to your test method, not a
class instance (aka an object).


John




More information about the Python-list mailing list