I'm trying to figure out the best way to get text input from a user through a pythonaddin. After watching this video it appears that a editable combo box is an option, but it's maybe not ideal due to its size. Message boxes only allow for Yes/No/Cancel so that's no good. Is there a better way?


The only way I have found to give you this type of functionality is to create a script tool, and reference it from within the addin.py. This will require you to create and reference a .TBX and .PY file. The external script should then pass whatever you need back to the addin. Use pythonaddins.GPToolDialog() to kick off the external script.

Check out blah238's response.


I've found that the editable combo box, upon further investigation, is a good way to go to get short text inputs from users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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