import arcpy import pythonaddins class Button1(object): """Implementation for LYR.BaseMap_Sat (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): script1 = "C:\Temp\Module1.py" execfile(script) class Button2(object): """Implementation for LYR.BaseMap_Sat (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): script2 = "C:\Temp\Module2.py" execfile(script2)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.