我正在为 arcgis 使用 python 插件,当我单击另一个按钮时,我试图禁用一个按钮。问题是我的代码不起作用,请帮助!
class ButtonSelectRetire(object):
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
cbr = ButtontRetire()
cbr.off()
class ButtontRetire(object):
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
pass
def on (self):
self.enable = True
def off (self):
self.enable = False