Re: Getting back an Object

2008-03-28 Thread Bruno Desthuilliers
Gary Herron a écrit : (snip) > One other word of warning. It is best to not use a variable named > "string" as Python has a builtin type of that name which would become > inaccessible if you redefine. Good advice, except that the builtin string type is actually named 'str', not 'string' !-) -

Re: Getting back an Object

2008-03-27 Thread Gary Herron
David Anderson wrote: > Well, I've got a little problem, I have a list that contains objects > from the class C, then I use those objects.__str__ to generate a > ListCtrl, A wxPython widget that makes a list of strings and then you > can handle events when selected, and returns the string selcte

Getting back an Object

2008-03-27 Thread David Anderson
Well, I've got a little problem, I have a list that contains objects from the class C, then I use those objects.__str__ to generate a ListCtrl, A wxPython widget that makes a list of strings and then you can handle events when selected, and returns the string selcted, how can I access the "parent"