wxpython - new line in radiobutton's label?

N

nuffnough

Hi.

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.


TIA
 
T

Tim Roberts

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top