def __init__(self, **kwargs): if not kwargs.has_key('StyleName'): kwargs['StyleName']="gwt-ListBox" self.changeListeners = [] self.INSERT_AT_END = -1 element = kwargs.pop('Element', None) or DOM.createSelect() FocusWidget.__init__(self, element, **kwargs) self.sinkEvents(Event.ONCHANGE)
def __init__(self, **kwargs): if not kwargs.has_key('StyleName'): kwargs['StyleName'] = "gwt-ListBox" self.changeListeners = [] self.INSERT_AT_END = -1 element = kwargs.pop('Element', None) or DOM.createSelect() FocusWidget.__init__(self, element, **kwargs) self.sinkEvents(Event.ONCHANGE)
def __init__(self, **kwargs): if not kwargs.has_key("StyleName"): kwargs["StyleName"] = "gwt-ListBox" self.changeListeners = [] self.INSERT_AT_END = -1 if kwargs.has_key("Element"): element = kwargs.pop("Element") else: element = DOM.createSelect() FocusWidget.__init__(self, element, **kwargs) self.sinkEvents(Event.ONCHANGE)
def __init__(self, **kwargs): if not kwargs.has_key('StyleName'): kwargs['StyleName']="gwt-ListBox" self.INSERT_AT_END = -1 element = kwargs.pop('Element', None) or DOM.createSelect() FocusWidget.__init__(self, element, **kwargs) ChangeHandler.__init__(self)