Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 widget has a "disabled" property or "isDisabled" method.

like image 833
Paul Avatar asked Sep 18 '25 08:09

Paul


1 Answers

IsEnabled exists, so you can do:

if not widget.IsEnabled():
    # do something

http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowisenabled

like image 93
FogleBird Avatar answered Sep 20 '25 23:09

FogleBird