New answers tagged python-addin
I think you are probably seeing the key difference between ArcPy and ArcObjects and later the Python Add-in. Arcpy is designed to access the data itself, but doesn't have ties to the user interface. This is why, if you want to access a layer in the table of contents, you have to return the list of layers, then iterate through until you get to the one you ...
The add-in framework usually won't create the objects until it needs them. I have a solution in this Esri forums thread: create them yourself at load time, so you'd have something like anotherButton = anotherButtonClass() at the bottom of your add-in's main .py file to make sure it's around.
Top 50 recent answers are included