What line of code can I add for attaching (or binding) a class to a field for a shapefile (i.e. WOdata.shp), layer, etc. to this: I just need to be able to have a user enter data through a combobox and have the data write to the shape (in an edit session). I read the above messages, but they are slightly different. Please help thanks.
class WODate(object):
"""Implementation for woToolkit_addin.combobox_3 (ComboBox)"""
def __init__(self):
self.items = ["05/02/2010", "04/20/2011", "05/20/2012", "05/20/2013", "01/20/2014"]
self.editable = False
self.enabled = True
self.dropdownWidth = 'WWWWWWWWWWW'
self.width = 'WWWWWWWWWWW'
def onSelChange(self, selection):
pass
def onEditChange(self, text):
pass
def onFocus(self, focused):
pass
def onEnter(self):
pass
def refresh(self):
pass
... View more