I can't figure out how to add controls to individual tabs. I thought I could
create a dPanel and add it like I would to a form but that doesn't seem to
work. Since it doesn't have an append method I tried addObject but that
isn't right either. Here is what I am trying:
class PLine(dabo.ui.dPanel):
def afterInit(self):
self.Sizer = vs = dabo.ui.dSizer("v")
vs.append(dabo.ui.dButton(self))
vs.append(dabo.ui.dButton(self))
class Notebook(dabo.ui.dPageFrame):
def afterInit(self):
self.PageCount = 13
pg0 = self.Pages[0]
pg0.Caption = "General"
pg1 = self.Pages[1]
pg1.Caption = "Line 1"
pg1line = PLine(self)
pg1.addObject(pg1line)
I get a 'PLine object is not callable'. What is the correct way of adding
controls?
Brian
--
View this message in context:
http://www.nabble.com/adding-panel-dPageFrame-tab-tp15275125p15275125.html
Sent from the dabo-users mailing list archive at Nabble.com.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]