On Jul 17, 2007, at 5:40 PM, Nate Lowrie wrote:
> That code works. Then I modified it to reflect how I was doing it. I
> used the following code:
>
> import dabo
> dabo.ui.loadUI("wx")
> import time
>
> class TestPage(dabo.ui.dPanel):
There's your error: you are inheriting from dPanel, not dPage. dPage
knows how to change the page's caption, which works differently than
other basic controls.
> class TestPGF(dabo.ui.dPageFrame):
> def afterInit(self):
> self.appendPage(TestPage)
> pg = self.Pages[-1]
> pg.DynamicCaption = pg.getTabCaption
BTW, appendPage/insertPage returns the newly created page, so you
can cut out one line by writing this:
class TestPGF(dabo.ui.dPageFrame):
def afterInit(self):
pg = self.appendPage(TestPage)
pg.DynamicCaption = pg.getTabCaption
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.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]