Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

10.2 Arcpy comboboxclass addin simple question

$
0
0
Hopefully this is a simple question, what variable is used to get the selection from this combo box? ie how do I use this in later code. I am not finding any good resources for arcpy addins.

Code:

class ComboBoxClass4(object):
    """Implementation for MTR_addin.combobox (ComboBox)"""
    def __init__(self):
        self.value = "S" 
        self.items = ("C", "F", "K", "S", "U")
        self.editable = True
        self.enabled = True
        self.dropdownWidth = 'WWW'
        self.width = 'WWW'
    def onSelChange(self, selection):
        pass
    def onEditChange(self, text):
        pass
    def onFocus(self, focused):
        pass
    def onEnter(self):
        pass
    def refresh(self):
        pass


Viewing all articles
Browse latest Browse all 2485

Trending Articles