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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top