On Friday 25 May 2007 08:53, Paul McNett wrote: > johnf wrote: > > I have added a how to. Using Ed's suggestion Larry and I (mostly Larry) > > made a test case. Please feel free to offer any suggestions. > > http://dabodev.com/wiki/HowToOverLayControls > > Why the extra panel? Why not simply subclass dPageFrameNoTabs? > > ## before: > > class Wtpgf(dabo.ui.dPanel): > def afterInit(self): > self.Sizer = hs = dabo.ui.dSizer("h") > #hs.append(dabo.ui.dLabel(self,Caption='hellow worl;d')) > pageFrame = pgf = > dabo.ui.dPageFrameNoTabs(self,DynamicSelectedPageNumber=self.GetDisplayMode >,RegID='WtPgf') pgf.appendPage(pgCls=KiloPanel) > pgf.appendPage(pgCls=LbsPanel) > hs.append(pgf, 1,"x") > def GetDisplayMode(self): > return(self.Form.WtDisplayMode) > > > ## After: > > class WtPgf(dabo.ui.dPageFrameNoTabs): > def initProperties(self): > self.RegID = "WtPgf" > self.DynamicSelectedPageNumber = self.GetDisplayMode > > def afterInit(self): > self.appendPage(pgCls=KiloPanel) > self.appendPage(pgCls=LbsPanel) > > def GetDisplayMode(self): > return self.Form.WtDisplayMode I guess because we are so use to adding panels to insure that tabs are working within a page. We (Larry and I - maybe Nate too) have discovered all the keychar,keypress issues disappear when we add panels. -- John Fabiani
_______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]
