Discussion:
[Python.NET] instance property must be accessed through a class instance
Charley Peng
2013-09-24 01:14:46 UTC
Permalink
Hi,

Have come across the error after trying to get the property of the device
device.DeviceList,
TypeError: instance property must be accessed through a class instance
The .NET class has the definition
public List<Device> DeviceList
(which just returns a
I have also tried the method get_DeviceList
However I get the error TypeError: not enough arguments

I have tried device.get_DeviceList(device) however I get TypeError: No
method matches given arguments

Does anyone know what the issue is?

Thanks!
Charley Peng
2013-09-24 01:22:34 UTC
Permalink
I forgot to add that DeviceList just returns a private variable
(this.deviceList)
Post by Charley Peng
Hi,
Have come across the error after trying to get the property of the device
device.DeviceList,
TypeError: instance property must be accessed through a class instance
The .NET class has the definition
public List<Device> DeviceList
(which just returns a
I have also tried the method get_DeviceList
However I get the error TypeError: not enough arguments
I have tried device.get_DeviceList(device) however I get TypeError: No
method matches given arguments
Does anyone know what the issue is?
Thanks!
Loading...