开发者

How to determine if a wx control is disabled

开发者 https://www.devze.com 2023-03-16 05:16 出处:网络
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

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

精彩评论

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