[wxPython-users] Re: Finding which control has focus
Ton van Vliet
ton.vanvliet at skynet.be
Wed Oct 10 07:44:19 PDT 2007
On Fri, 05 Oct 2007 14:24:55 -0700, you wrote:
>Robin Dunn wrote:
>> (or move them into the other classes to better encapsulate the
>> functionality.)
>
>exactly. Read:
>
>http://wiki.wxpython.org/wxPython_Style_Guide
When I run the example program 'out of the box', I get an exception on line 21: AttributeError: can't set attribute
When I change the line to self.parent = ... (lowercase 'p'arent) it does not give the exception.
FWIW, I am running Python-2.5.1 and wxPython-2.8.6.0.
>In general, you don't want to have all these nested objects in one class
>-- and this is one of the reasons. there are a lot of posts on this list
>from people having trouble due to these kinds of problems.
>
>-Chris
More information about the wxpython-users
mailing list