[Tutor] how to access deep classes
lie.1296 at gmail.com
Fri Nov 20 13:48:59 CET 2009
> I'm not to sure I can explain myself. But I need to ask because I do not
> understand how it works or what is possible.
> class A (wx.Panel);
> class B(wx.PyPanel):
> def __init__(..):
> self.pages = A(...)
> class C (B)
> def __init__(...)
> I can't change the code in either class A or class B. But I want to add a
> property to class A in class C. Is that possible?
> Something like
> wxpanelFontSize = property(_getwxpanelFontSize, _setwxpanelFontSize, None, '')
> Or is there another way to get the same thing done?
Is this what you want?
def wxpanelFontSize(self, value):
self.pages.wxpanelFontSize = value
More information about the Tutor