AnsweredAssumed Answered

How to show Messagebox in ArcMap 10.1 through using Python?

Question asked by dgesri on Mar 18, 2014
Latest reply on Mar 18, 2014 by jskinner-esristaff

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:

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

Please help!