I would like to make a widget that on click, will start a .py file.
Is it possible, and how?
Thx alot
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
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
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.