Użytkownik Fraser Burns napisał:
> Thanks Jacek
> So what have I done wrong here?
>
> class MainForm(dabo.ui.dForm):
> def afterInit(self):
> sz = self.Sizer = dabo.ui.dSizer("v")
> pn = self.Panel = dabo.ui.dPanel(self, BackColor=(255,200,200))
> szh = self.Panel.Sizer = dabo.ui.dSizer("h")
> l1 = dabo.ui.dLabel(self, Caption="One")
> l2 = dabo.ui.dLabel(self, Caption="Two")
> szh.append1x(l1)
> szh.append1x(l2)
> pn.layout()
> sz.append1x(pn)
> sz.layout()
>
I don't know what you want to achieve,
but maybe labels should be put on the panel.
class MainForm(dabo.ui.dForm):
def afterInit(self):
sz = self.Sizer = dabo.ui.dSizer("v")
pn = self.Panel = dabo.ui.dPanel(self, BackColor=(255,200,200))
szh = self.Panel.Sizer = dabo.ui.dSizer("h")
l1 = dabo.ui.dLabel(pn, Caption="One")
l2 = dabo.ui.dLabel(pn, Caption="Two")
szh.append1x(l1)
szh.append1x(l2)
pn.layout()
sz.append1x(pn)
self.layout()
--
Regards
Jacek Kałucki
_______________________________________________
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/[email protected]