[wxPython-users] Problem with wx.StaticText()
Robin Dunn
robin at alldunn.com
Tue Mar 4 13:06:38 PST 2008
Cedric Gaspoz wrote:
> Hi,
>
> I have localized my wx application and I have problem to display static
> text. There is probably a very easy solution, but I didn't find it :-(
>
> I have some strings displayed in my windows. I use sizers to manage the
> page layout. When the string is translated and longer as the original
> string, it get cropped. I'm looking for a way to adapt the size of the
> StaticText to the content when the new string is longer than a line (ie
> to flow on two lines).
Decide what the max width in pixels that your text should be and use the
Wrap method.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list