How to determine if a wx control is disabled
How can I programmatically determine if a particular control (In my case a wx CheckBox) is disabled? I don't see that the w开发者_如何学Pythonidget has a "disabled" property or "isDisabled" method.
IsEnabled
exists, so you can do:
if not widget.IsEnabled():
# do something
http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowisenabled
精彩评论