Is it possible to start a Python script with a Widgets?

1730
3
03-25-2018 05:32 PM
Jean-SimonLevert
New Contributor II

I would like to make a widget that on click, will start a .py file.

Is it possible, and how?

Thx alot

3 Replies
DanPatterson_Retired
MVP Emeritus

Why do you need a widget?

Is it the only thing that you want to run the script, given the other options to run scripts?

And if it could, what does the script do?

What if there were widget options that did what you wanted but didn't run a python script?

So many questions

ModyBuchbinder
Esri Regular Contributor

In principle a GPservice can be a python script and there is a widget to run GPservices.

As Dan said there are many questions here about what you try to do...

Have fun

SigamGeo
New Contributor II

I was thinking the same, I use ArcGIS Enterprise 10.3.1, and already used a GPtool to create a widget to extract data (export in kml, shp, etc). But now I have to load photos with geotag from the app/template, so I created a widget with a exif.js dependency to read the x,y,z of a photo and was thinking to use arcpy to generate the point and add the attachment.

0 Kudos