Jacek Kałucki wrote:
> 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.
>
>
Jacek,
Why can't you you a series of dSizers? What requirements don't they
satisfy? If you want to get the GridSizer portion working, I see no
problem with it. However, the 2 items I mentioned earlier about mixing
wx calls and putting things into the __init__ method could lead to your
error. You may want to try making though changes and see if that
corrects your error. Also, why are you calling the superclass
createItems method? What does it (PageEditBase.createItems) do?
Regards,
Nate
_______________________________________________
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]