[wxPython-users] AttributeError: can't set attribute -- FIXED

Robin Dunn robin at alldunn.com
Wed Sep 26 14:43:00 PDT 2007


Rich Shepard wrote:
> On Wed, 26 Sep 2007, Rich Shepard wrote:
> 
>>  I don't see my error despite looking and looking. Fresh eyes will 
>> probably
>> spot it at once.
> 
>   Found it: it was naming the widget 'Parent.' I thought that might be an
> issue, and had changed it to 'fsParent' without seeing a difference. But,
> changing the name to 'fsPar' fixed the problem. Interesting.

Parent is a Python property that maps to the GetParent getter method. 
Since there is not a setter given to the property it gives you that 
exception.  There is no fsParent property so you may have done something 
like forgetting to save the file when you tested that change.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list