wxpython - new line in radiobutton's label?

Tim Roberts timr at probo.com
Mon May 1 06:51:24 CEST 2006


nuffnough at gmail.com wrote:
>
>I am creating a small gui using wxGlade and wxPython.  I am using a
>radio button, and the text next to the options needs to be over two
>lines.  I tried using a \n character,  but it seems to get ignored.
>
>Looking around in the various wikis and the example code also didn't
>turn up anything.

The native Windows radio button cannot do multiline labels.  You'll have to
do the first line in the radio button, and the second line as a
wx.StaticText.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list