Re: [Python.NET] I need to use C# list as an object for one of my controls

2013-05-23 Thread Jojo Maquiling
Actually i'm just trying to use a .net System.Object List with this one - http://objectlistview.sourceforge.net/cs/index.html. I like the way the grid is displayed on that objectlistview so i'm trying to experiment and dispay, but what i get is just an empty row. Here is the snippet of my code. d

Re: [Python.NET] I need to use C# list as an object for one of my controls

2013-05-23 Thread [email protected]
What exactly are you trying to do? It looks like you are trying to create a class in python that inherits from .net's System.Object, rather than python's object. But then you treat it as a dynamic object, which it really isn't. And then you try and treat it as a statically typed object, which

[Python.NET] I need to use C# list as an object for one of my controls

2013-05-23 Thread Jojo Maquiling
Here is the issue that i need to address: * * *# My declaration is just fine here * >>> class person(System.Object): def __init__(self,fname,lname): self.Firstname = fname self.Lastname = lname *# adding a value also goes fine. * >>> j = person('jojo','maquiling') >>> j <__main__.person object a