import arcpy import pythonaddins class ButtonClass1(object): """Implementation for StopStartEdits_addin.button (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): # your button event logic is here class ExtensionClass2(object): """Implementation for StopStartEdits_addin.extension3 (Extension)""" def __init__(self): # For performance considerations, please remove all unused methods in this class. self.enabled = True def onStartEditing(self): button.enabled = False def onStopEditing(self, save_changes): button.enabled = True
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.