[wxPython-users] Treebook info

Andrea amarin at mr-service.it
Sat Jun 16 08:30:51 PDT 2007


Robin Dunn wrote:
> Just like any book control you just create a new panel and put the 
> controls on it you want and then add it as a new page.  Normally you 
> would create a new class for each kind of panel you want to use.

Thanks a lot,

now I have understand my mistake, I change the panel owner and now I can 
put different control into different panel.

For other people I past the code that I change:

def TreeBookSubPage(self):
         win_sub = self.makeColorPanel(self.colour)
         self.tb.AddPage(win_sub, self.num_linea[self.i])#, 
mageId=imageIdGenerator.next())
         self.tb.AddSubPage(win_sub, 'Canone attuale')
         self.stc = wx.TextCtrl(win_sub.win, -1, "Sub Page", (10,10))
         self.sta = wx.StaticText(win_sub.win, -1, "Pippo", (10,50))
         win_sub2 = self.makeColorPanel(self.colour)
         self.tb.AddSubPage(win_sub2, 'Canone MR')
         self.sta = wx.StaticText(win_sub2.win, -1, "Pluto", (10,10))

Thanks :):):)




More information about the wxpython-users mailing list