views:

21

answers:

1

Hi,

I am developing a GUI in Vizard in witch i am using radio buttons to select correct options, but i have a problem that i cannot solve.

In every group of radio buttons the 1st button is appears always select, but actually is not selected, the only way of selecting it is by choosing other button and then choose again the 1st button.

does anyone know how to solve this? I would like that in the beginning none of he buttons appear selected, only select button after clicking on it.

A: 

I don't know Vizard but radio buttons probably have a method or another way of deselecting them similar to radiobutton.deselect() method of Tkinter. Have you looked at their documentation?

Also someone have done this trick, may be you should try it: Create another radio button in that group, let it be selected by default and make it invisible

QuestionBox = vizinfo.add("") #Add the vizinfo object
#Create an invisible Radio button to be the default selected one, so that one of the visible ones must be chosen by the user
invisibleRadio = QuestionBox.add(viz.RADIO, 0, "")  
invisibleRadio.visible(0) #invisible

source: http://forum.worldviz.com/showthread.php?t=1611

Gani Simsek
Thank you, this solution worked just fine.
Leo.peis