This might be an easy thing but couldn’t get it to work. I want to disable “self.selsub” radio button at the time of initializtion:
self.allsub = wx.RadioButton(panel, -1, ‘ALL SUB’, (60, 320), style=wx.RB_GROUP)
self.selsub = wx.RadioButton(panel, -1, ‘Sel SUB’, (300, 320))
Please suggest how to do it. Thanks.
Ibraheem Khan wrote:
This might be an easy thing but couldn't get it to work. I want to
disable "self.selsub" radio button at the time of initializtion:
self.allsub = wx.RadioButton(panel, -1, 'ALL SUB', (60, 320),
style=wx.RB_GROUP)
self.selsub = wx.RadioButton(panel, -1, 'Sel SUB', (300, 320))
Umm, did you try the obvious?
self.selsub.Disable()
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.