0

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?

Emil Brundage
  • 13,859
  • 3
  • 26
  • 62

2 Answers2

0

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.

Barbarossa
  • 5,797
  • 27
  • 61
0

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

Emil Brundage
  • 13,859
  • 3
  • 26
  • 62