Sizer problem with SetLabel in 2.5.x

Sorry if this comes as a duplicate.

In wxPython 2.4.x I could do things like this:

self.control.SetLabel(_('Rating Type:'))

as I used wxADJUST_MINSIZE when adding these controls to the respective
sizer.

I converted all these flags to the new namespace but if the text
returned by gettext is a bit longer then the size of the control size
then the control gets not resized.

I can't figure out what I need to do to my code to adjust to the new
beheaviour.

Tried a few things but no success, any hints would be appreciated.

See you
Werner

Hi All,

Attached a small example, on 2.4.x the button and the staticText get expanded when clicking on the first button.

On 2.5.5.0 (on Windows XP) nothing happens, even if I un-comment the lines with InvalidateBestSize etc.

See you
Werner

Werner F. Bruhin wrote:

sizertest.py (3.58 KB)

ยทยทยท

Sorry if this comes as a duplicate.

In wxPython 2.4.x I could do things like this:

self.control.SetLabel(_('Rating Type:'))

as I used wxADJUST_MINSIZE when adding these controls to the respective
sizer.

I converted all these flags to the new namespace but if the text
returned by gettext is a bit longer then the size of the control size
then the control gets not resized.

I can't figure out what I need to do to my code to adjust to the new
beheaviour.

Tried a few things but no success, any hints would be appreciated.

See you
Werner

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org