Użytkownik Nate Lowrie napisał:
> 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)
>
Of course, I can use ordinary BoxSizers instead, and afraid I must
do that in such situation.
But I'm not satisfied of this, especially that pure wx controls works
correctly :(
Thanks, Nate.
--
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]