I am a beginner at Python coding and would require some help with ArcGIS Python Add ins.
I have created a TOOL which is working fine. I want to modify my code so this TOOL is enable only when a condition is met (in my case when a single point is selected from a predefined layer). The TOOL become disable when selection count <> 1
I have try a few things but I cannot find the correct place where to put my code for testing of that condition.
- I tried in the def __init__(self): this works when the tool is loaded, but does work afterward when the selection is updated