Select to view content in your preferred language

How do I refer to a selected item in the python add-in combobox ?

668
2
Jump to solution
10-30-2013 05:59 AM
ionarawilson1
Deactivated User
As Arek has mentioned in this previous thread it is possible to refer to an addin object like a combobox in a python script.

http://forums.arcgis.com/threads/95782-Possible-to-access-the-properties-of-a-combobox-created-with-...

Now, how can I refer to a selected item in the combobox? For example, if I want to code:

if combox has a selected value of "SP":
do something

How do I refer to the selected item in the combobox? Thank you
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JasonScheirer
Esri Alum
Are you reading the documentation? It clearly says to use combobox.value.

View solution in original post

0 Kudos
2 Replies
JasonScheirer
Esri Alum
Are you reading the documentation? It clearly says to use combobox.value.
0 Kudos
ionarawilson1
Deactivated User
Thanks Jason. I was not sure I had to use some kind of selection property as it is common in combo boxes in other programming languages. Cheers
0 Kudos