How to remove initial wx.RadioBox selection?

后端 未结 4 378
有刺的猬
有刺的猬 2021-01-22 08:13

I have the following code :

myList =[\'a\',\'b\']
rb=wx.RadioBox(self.panel, -1, \"Options :\", (0, 0), wx.DefaultSize,myList, 2, wx.RA_SPECIFY_COLS)
         


        
4条回答
  •  迷失自我
    2021-01-22 08:49

    The use of a radio box implies, "there is a list of two or more options that are mutually exclusive and the user must select exactly one choice."

    The radio box never exists in a state with no choice made. If that's not the case, then don't use a radio box.

    If you don't want any of the current radio box options to be selected as default, add another option for "N/A" or "No choice".

提交回复
热议问题