button size

I have a pair of buttons with different "content", and I want to give to
my buttons the same size (i.e. the size of the biggest button).
Both are in the same horizontal sizer so probably I have to use a flag,
but I'm not able to find it.

  ngw

···

--
checking for life_signs in -lKenny... no
  Oh my god, make (1) killed Kenny ! You, bastards !

nicholas_wieland-at-yahoo-dot-it

___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com

Hi Nicholas,

I think wx.EXPAND should do it.

See you
Werner

Nicholas Wieland wrote:

···

I have a pair of buttons with different "content", and I want to give to
my buttons the same size (i.e. the size of the biggest button).
Both are in the same horizontal sizer so probably I have to use a flag,
but I'm not able to find it.

ngw

- Werner F. Bruhin :

Hi Nicholas,

I think wx.EXPAND should do it.

That's what I thought at first time, but it expands the button for the
remaining width of the sizer.

TIA,
  ngw

···

--
checking for life_signs in -lKenny... no
  Oh my god, make (1) killed Kenny ! You, bastards !

nicholas_wieland-at-yahoo-dot-it

___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it

Hi Nicholas,

Nicholas Wieland wrote:

- Werner F. Bruhin :

Hi Nicholas,

I think wx.EXPAND should do it.
   
That's what I thought at first time, but it expands the button for the
remaining width of the sizer.

Yes, but you don't have to expand the sizer when you add it to another sizer. Or don't I understand what you want? Maybe a small sample will help.

See you
Werner

···

TIA,
ngw

Friday, December 2, 2005, 2:05:03 PM, Nicholas Wieland wrote:

I have a pair of buttons with different "content", and I want to
give to my buttons the same size (i.e. the size of the biggest
button). Both are in the same horizontal sizer so probably I have to
use a flag, but I'm not able to find it.

Instead of using a horizontal sizer, use a wx.GridSizer and add both
buttons with a wx.EXPAND flag.

-- tacao

No bits were harmed during the making of this e-mail.

Add both buttons with proportion 1.
Or, find out the size of the larger button, and set the size of the
smaller button to be the size of the larger button, then add them.

- Josiah

···

Nicholas Wieland <nicholas_wieland@yahoo.it> wrote:

I have a pair of buttons with different "content", and I want to give to
my buttons the same size (i.e. the size of the biggest button).
Both are in the same horizontal sizer so probably I have to use a flag,
but I'm not able to find it.