Greetings,
I have downloaded "PyScripter-v2.5.3-x64-Setup.ex" and I`m using the Add-in Manager to add a command on a toolbar inside ArcMap 10.1...
I succeeded in adding the toolbar and the command, however I need to show a Messagebox at the On_Click event of the command and I`m not able to do that...This is my code below:
Please help!
I have downloaded "PyScripter-v2.5.3-x64-Setup.ex" and I`m using the Add-in Manager to add a command on a toolbar inside ArcMap 10.1...
I succeeded in adding the toolbar and the command, however I need to show a Messagebox at the On_Click event of the command and I`m not able to do that...This is my code below:
Code:
import arcpy
import pythonaddins
class ButtonClass1(object):
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
arcpy.AddMessage("TestMessg")
print("text")
pass