RadioButton disable

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.

It worked. Thanks!

···

On Tuesday, July 14, 2015 at 10:02:43 PM UTC-4, 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))

Please suggest how to do it. Thanks.