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)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.