How to remove initial wx.RadioBox selection?

后端 未结 4 387
有刺的猬
有刺的猬 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 09:10

    If you just want initial selection invisible, you can have a try with ShowItem(item, show=True)

    example here:

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

提交回复
热议问题