Sorry. Formatting got screwed up a little bit. Shame on me for editing
in Thunderbird. Here you go:
class PagEditUsersGroups(PagEditBase):
def createItems(self):
sizer = self.Sizer
sizer.DefaultBorder = 5
hs = dabo.ui.dSizer('h')
vs = dabo.ui.dSizer('v')
vs.append(dabo.ui.dLabel(self, Caption=u"Grupy użytkowników"))
vs.append1x(self.addObject(ItemList, "lstGroups", Height=300))
vs.append(cCmdButtonGroup(self, buttons=("1", "2"),
orientation="h"))
hs.append1x(vs)
vs = dabo.ui.dSizer('v')
vs.append1x(cCmdButtonGroup(self, buttons=(">", "<"),
orientation="v",
OnHit=self.onListAction), 1)
vs.append(cCmdButtonGroup(self, buttons=("3", "4"),
orientation="h"))
hs.append(vs, "expand")
vs = dabo.ui.dSizer('v')
vs.append(dabo.ui.dLabel(self, Caption=u"Przynależność do grup"))
vs.append1x(self.addObject(ItemList, "lstUserGroups", Height=300))
vs.append(cCmdButtonGroup(self, buttons=("5", "6"),
orientation="h"))
hs.append1x(vs)
sizer.append(hs, "expand")
PagEditBase.createItems(self)
Nate Lowrie wrote:
> I wouldn't use a grid sizer for this. The grid sizer is largely used
> if you have a lot of label field combos that you want to line up. Try
> this:
>
> class PagEditUsersGroups(PagEditBase):
> def createItems(self):
> sizer = self.Sizer
> sizer.DefaultBorder = 5
> hs = dabo.ui.dSizer('h')
> vs = dabo.ui.dSizer('v')
> vs.append(dabo.ui.dLabel(self, Caption=u"Grupy użytkowników"))
> vs.append1x(self.addObject(ItemList, "lstGroups", Height=300))
> vs.append(cCmdButtonGroup(self, buttons=("1", "2"),
> orientation="h"))
> hs.append1x(vs)
> vs = dabo.ui.dSizer('v')
> vs.append1x(cCmdButtonGroup(self, buttons=(">", "<"),
> orientation="v", OnHit=self.onListAction), 1)
> vs.append(cCmdButtonGroup(self, buttons=("3", "4"),
> orientation="h"))
> hs.append(vs, "expand")
>
> vs = dabo.ui.dSizer('v') vs.append(dabo.ui.dLabel(self,
> Caption=u"Przynależność do grup"))
> vs.append1x(self.addObject(ItemList, "lstUserGroups",
> Height=300))
> vs.append(cCmdButtonGroup(self, buttons=("5", "6"),
> orientation="h"))
> hs.append1x(vs)
>
> sizer.append(hs, "expand")
> PagEditBase.createItems(self)
_______________________________________________
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]