Re: Inheritance and recursion problem

2006-11-25 Thread Fredrik Lundh
Spiro wrote: > XWindow have all drawing functionality and Windows[] object which holds > all child windows. > > Function Draw looks like this: > def Draw(self): > self.Back.blit > for wnd in self.Windows: > wnd.Draw(OffsetX, OffsetY) > > Now in main module i make objec

Inheritance and recursion problem

2006-11-25 Thread Spiro
Hi all, i'm trying to make some user interface objects in python. I have classes XWindow and XMainWindow(XWindow) (XMainWindow inherited from XWindow) XWindow have all drawing functionality and Windows[] object which holds all child windows. Function Draw looks like this: def Draw(self):