开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜