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()


Jacek Kałucki wrote:
> Użytkownik Fraser Burns napisał:
>   
>> What is the correct way to add a sizer to a panel:
>> EG
>> Form>  Sizer>  Panel>  Sizer>  Labels
>>
>>    
>>     
>
> Hi.
>
> You can set main sizer for any control with:
>      control.Sizer = dabo.ui.dSizer("<h/v>")
>
>   
_______________________________________________
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]

Reply via email to