Friday, 27 October 2017

arcgis 10.1 - Refreshing Combobox of Python Add-in of ArcPy?


I need to refresh the value in the combobox after an event from other tool in the same add-in (ARCGIS 10.1. Python).


I've changed the value of the combobox with the code:


combobox.value = val

and I want to show it in the combobox but I can't refresh this combobox after give a value in other tool.



Answer



As documented in the help, use the .refresh() method:



combobox.value = val
combobox.refresh()

No comments:

Post a Comment