[wxPython] Grey-out a control?

I've been digging through the docs, and I can't figure out how to grey-out a
control.

I have a series of checkboxes representing a group of flags. I also have a
master checkbox, which
overrides the individual flags in the other checkboxes. When the master
checkbox is checked, I
would like to grey-out (disable) the other checkboxes, so that the user gets
a proper GUI experience
and knows that the individual checkboxes are no longer available.

I know there must be a simple call to do this, but I can't seem to find it.

Can anyone help?

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

If "checkbox" is the instance of the wxCheckbox you're trying to disable, use:

checkbox.Enable(false)

and enable it again using Enable(true)

Wayne

"Boeren, David C." wrote:

···

I've been digging through the docs, and I can't figure out how to grey-out a
control.

I have a series of checkboxes representing a group of flags. I also have a
master checkbox, which
overrides the individual flags in the other checkboxes. When the master
checkbox is checked, I
would like to grey-out (disable) the other checkboxes, so that the user gets
a proper GUI experience
and knows that the individual checkboxes are no longer available.

I know there must be a simple call to do this, but I can't seem to find it.

Can anyone help?

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users