setEnabled(bool) 设置控件是否可用
True 可用
isEnabled() 获取控件是否可用
s=button.isEnabled()
控件是否可用
原文:https://www.cnblogs.com/liming19680104/p/10705123.html