I think that in the more recent versions of wx there is a GridBagSizers that might be what you are after but you can always do it simply enough by putting each row of buttons into its own horizontal box sizer and then those sizers into a vertical box sizer.
···
On 13/12/12 04:34, nobody h wrote:
Hi,
Which sizer can be used to achieve independent cell width for each row? For example, if I have two rows, each row has three buttons. The row 1 buttons have long labels which makes the row 2 buttons have to align with the first row, and I don't want that alignment. What I try to see is if I can have a sizer to independently align its own row, button 2 close next to button 1, and button 3 close next to button 2 if you know what I mean? Is it possible, if so, please give an example how to do it?
row 1: aaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccc
row 2: button 1 button 2 button 3
Thank you.
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
--
Steve <I>Gadget</I> Barnes
+1
I almost always use nested BoxSizers. They’re so flexible!
···
On Wednesday, December 12, 2012 11:43:36 PM UTC-6, Gadget Steve wrote:
On 13/12/12 04:34, nobody h wrote:
Hi,
Which sizer can be used to achieve independent cell width for each
row? For example, if I have two rows, each row has three buttons. The
row 1 buttons have long labels which makes the row 2 buttons have to
align with the first row, and I don’t want that alignment. What I try
to see is if I can have a sizer to independently align its own row,
button 2 close next to button 1, and button 3 close next to button 2
if you know what I mean? Is it possible, if so, please give an example
how to do it?
row 1: aaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccc
row 2: button 1 button 2 button 3
Thank you.
–
To unsubscribe, send email to wxPython-user...@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
I think that in the more recent versions of wx there is a GridBagSizers
that might be what you are after but you can always do it simply enough
by putting each row of buttons into its own horizontal box sizer and
then those sizers into a vertical box sizer.
–
Steve Gadget Barnes