[wxPython-users] AttributeError: can't set attribute -- FIXED
Rich Shepard
rshepard at appl-ecosys.com
Wed Sep 26 14:48:58 PDT 2007
On Wed, 26 Sep 2007, Robin Dunn wrote:
> Parent is a Python property that maps to the GetParent getter method.
Robin,
I did not realize that the property began with an uppercase 'P' and
thought there might be a reserved word, 'parent.'
> Since there is not a setter given to the property it gives you that
> exception.
That's what finally sunk in. The name was reserved for something other
than what I wanted. So a change was in order.
> There is no fsParent property so you may have done something like
> forgetting to save the file when you tested that change.
That was my first thought, but emacs told me otherwise. Regardless,
changing it to fsPar conflicts with nothing. Another good lesson.
Thanks for the explanation,
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the wxpython-users
mailing list