Right now what we have in terms of simple dialogs are available with the pythonaddins module. With this module you have the ability to open a dialog which the user can browse to select one or more datasets and return the path of the users selection to the tool. The same can be done so the user can save the path of a new dataset. You can also create a message with optional buttons such as Yes/No, OK/Cancel to get the users input.
Are there plans for this before final release? Even 'simple' dialogs like an add-in option pane will be needed for many use cases, and will keep a lot of people staying with deploying toolboxes with parameters instead. Filling an addin toolbar with loads of buttons, menus and combos just to allow a user to specify even just half a dozen parameters will not look great.Great first step though, good to see python addins
Hi Dan,No not quite, unfortunately there is no supported python module at this time for building GUIs with python add-ins. So if you need to build a button that displays a form to accept user input and execute some code you will still need to use .Net or Java add-ins for Desktop.
"Adding" a script is not appropriate because I have yet to create the script.It would be useful to be able to create an empty file with a py suffix right there.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.