RadioButton disable

20 views
Skip to first unread message

Ibraheem Khan

unread,
Jul 14, 2015, 10:02:43 PM7/14/15
to wxpytho...@googlegroups.com
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.

Tim Roberts

unread,
Jul 16, 2015, 2:06:05 PM7/16/15
to wxpytho...@googlegroups.com
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, ti...@probo.com
Providenza & Boekelheide, Inc.

Ibraheem Khan

unread,
Jul 16, 2015, 7:31:57 PM7/16/15
to wxpytho...@googlegroups.com
It worked. Thanks!
Reply all
Reply to author
Forward
0 new messages