arcgis - Disable a button in python -


i using python add in arcgis , trying disable button when click in button. problem code not working, please!

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 

i assume wanted disable buttontretire buttonselectretire class. carefull intentions. here can find short , straightforward pythonaddins video tutorial beginners (with answer).

class buttonselectretire(object):      def __init__(self):         self.enabled = true         self.checked = false     def onclick(self):         buttontretire.enabled = false  class buttontretire(object):      def __init__(self):         self.enabled = true         self.checked = false      def onclick(self):         pass 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -