From cpeng92 at gmail.com Tue Sep 24 03:14:46 2013 From: cpeng92 at gmail.com (Charley Peng) Date: Tue, 24 Sep 2013 11:14:46 +1000 Subject: [Python.NET] instance property must be accessed through a class instance Message-ID: 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 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! -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpeng92 at gmail.com Tue Sep 24 03:22:34 2013 From: cpeng92 at gmail.com (Charley Peng) Date: Tue, 24 Sep 2013 11:22:34 +1000 Subject: [Python.NET] instance property must be accessed through a class instance In-Reply-To: References: Message-ID: I forgot to add that DeviceList just returns a private variable (this.deviceList) On Tue, Sep 24, 2013 at 11:14 AM, Charley Peng wrote: > 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 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! > -------------- next part -------------- An HTML attachment was scrubbed... URL: