[wxPython-users] Re: Finding which control has focus

Robin Dunn robin at alldunn.com
Wed Oct 10 14:45:00 PDT 2007


Ton van Vliet wrote:
> 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.

Yep.  Parent (capital P) is now a property that maps to GetParent with 
no setter function.  I'll change the page.


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





More information about the wxpython-users mailing list