3

I want to add a box message to pop up before execution of a button tool. When I click a button which will do geoprocessing, I want a box to appear on view before processing with message that I am about to do xxx processing.

How do I do it?

3 Answers 3

3

See Python Message Box Without huge library dependency at Stack Overflow.

Note that doing any sort of user interface in a geoprocessing tool is kind of a no-no and may annoy your end users.

1

The geoprocesing framework has a standard user interface for built-in geoprocessing tools, models and script tools. Unless you are doing something that really requires its own specialized user interface, you should stick to the framework.

See the following help topics for more information:

If you will be upgrading to 10.1 soon you might also be interested in Python toolboxes and Python add-ins.

1
  • Just to clear: It is a specialized user interface and therefore require a separate message window (not 'arcpy.AddMessage' for in script messages) as a notification on screen before execution of customized tool.
    – Ibe
    Nov 7, 2012 at 6:35
1

Unfortunately the python framework implemented in ArcGIS (referred to above) is very limiting. For people that are used to professional design systems like visual studio, this stuff will pull your hair out. Even the add-ins do not get you forms with controls, just single controls on the ArcGIS toolbars. Most developers want to develop interfaces (e.g. forms with controls)

If you want complete control over ArcGIS systems you need to code up in Visual Studio and ArcObjects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.