Re: [Tutor] how to access deep classes

2009-11-20 Thread John
On Friday 20 November 2009 09:48:38 am Alan Gauld wrote: > "John" wrote > > > class A (wx.Panel); > > def__init__(...) > > > > class B(wx.PyPanel): > > > > def __init__(..): > > self.pages = A(...) > > > > class C (B) > > def __init__(...) > > > > I can't change the code in either class A

Re: [Tutor] how to access deep classes

2009-11-20 Thread Alan Gauld
"John" wrote class A (wx.Panel); def__init__(...) 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? You need to d

Re: [Tutor] how to access deep classes

2009-11-20 Thread John
On Friday 20 November 2009 04:48:59 am Lie Ryan wrote: > Is this what you want? > > class C(B): >     �...@property >      def wxpanelFontSize(self): >          return self.pages.wxpanelFontSize >     �...@wxpanelfontsize.setter >      def wxpanelFontSize(self, value): >          self.pages.wxpanel

Re: [Tutor] how to access deep classes

2009-11-20 Thread Lie Ryan
John wrote: Hi, 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); def__init__(...) class B(wx.PyPanel): def __init__(..): self.pages = A(...) class C (B) def __init__(...) I can't change t

[Tutor] how to access deep classes

2009-11-20 Thread John
Hi, 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); def__init__(...) class B(wx.PyPanel): def __init__(..): self.pages = A(...) class C (B) def __init__(...) I can't change the code in eith