I would like to know if ArcPy currently supports executing scripts using Tkinter inside ArcMap, i.e directly from the Python Window or in the ArcToolbox (embedded)?
When I tried to display a simple "Hello World" form, ArcMap 10 crashed on me.
I've never heard about this "Geoprocessing script tool framework"... could you give me more details about this tool? Does it come in the base package of ArcMap?
Please email me at nahmed@esri.com - let's figure it out first and then we'll post the outcome to this thread. Please let me know what data/values you'll use and how.
Please email me at nahmed@esri.com - let's figure it out first and then we'll post the outcome to this thread. Please let me know what data/values you'll use and how.
I don't mind sending you an email, but why not keep exchanging through this forum, so that everybody can benefit from our discussion? 🙂
What I need to achieve is pretty simple, yet not fully determined. I just want to pop up a simple form giving the user some control over what would be done by my script, without using script parameters. Let's say I want to give the user a choice in the middle of my algorithm, for example if I want to pop up a window with several choices dynamically populated. That would be a good example of what I'm trying to do.
If you want to run your algorithm from command line and want the user to interact in the middle of the algorithm then a Python GUI program is your only option. As Esri does not officially support any such GUI yet - this forum is the only option to get help 😞
On the other hand, if the user will interact with your script through some GUI then script tool framework is a good option. The Tool Validator class mechanism will allow you to fill up options dynamically based on what selection is made in other parameters.