On Nov 26, 2010, at 6:31 PM, Fraser Burns wrote:

> I want to use a dGridSizer on a panel, but need a bit of space around 
> the outside to make it look good.
> I figured that a "Border" was the appropriate way.
> The API doesn't mention a Border property.
> The wiki does.
> But when I tried this:
> pnl.Sizer = dabo.ui.dGridSizer(HGap=5, VGap=15, Border=20)
> 
> I got:
> TypeError: Invalid keyword arguments passed to dGridSizer: Border

        The wiki is out of date; I'll fix it. The property is now named 
DefaultBorder. The reason for the name change is that the original name 
"Border" was misleading, since most were like you thinking that it created a 
border area around the sizer itself. The DefaultBorder property tells the sizer 
to add a border around any object added to the sizer that doesn't explicitly 
set its own border.

        To do what you want to do, you have to add the gridsizer to another 
sizer. So something like this:

pnl.Sizer = dabo.ui.dSizer("v")
grd = dabo.ui.dGridSizer(...)
pnl.Sizer.append1x(grd, border=20)



-- Ed Leafe



_______________________________________________
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