[wxpython-users] Re-sizing wx.StaticText in a wx.Dialog
Robin Dunn
robin at alldunn.com
Thu May 1 17:33:58 PDT 2008
Frank Aune wrote:
> If DESC can be of *any* length, how do I get the statictext to fit it on
> screen without making the dialog grow horizontal (or bump the OK button
> downwards outside the frame, which has happened occationally).
You can wrap the text by inserting newline characters into the string.
There is a function in wx.lib.wordwrap that can help automate that.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list