Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

How to show Messagebox in ArcMap 10.1 through using Python?

$
0
0
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:

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

Please help!

Viewing all articles
Browse latest Browse all 2485

Trending Articles