sizers and wxradiobox

Hi,

is there any special trick to resize a wxRadioBox after the labels of the
radio buttons have changed ?
I have a radiobox and a couple of other controls grouped in several
boxsizers on a panel. The panel
belongs to a wxFrame. Thanks for any hints.

Marcus

Marcus Stojek wrote:

Hi,

is there any special trick to resize a wxRadioBox after the labels of the
radio buttons have changed ?
I have a radiobox and a couple of other controls grouped in several
boxsizers on a panel. The panel
belongs to a wxFrame. Thanks for any hints.

Try this:

  radioBox.SetSize(radioBox.GetBestSize())

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!