def __init__(self, *args, **kwargs):
        """
        Args:
            kwargs: See Widget.__init__()
        """
        super(DropDown, self).__init__(*args, **kwargs)
        self.type = 'select'
        self.attributes[self.EVENT_ONCHANGE] = \
            "var params={};params['value']=document.getElementById('%(id)s').value;" \
            "sendCallbackParam('%(id)s','%(evt)s',params);" % {'id': self.identifier,
                                                               'evt': self.EVENT_ONCHANGE}
        self._selected_item = None
        self._selected_key = None
def __init__ ( self , * args , ** kwargs ) : super ( DropDown , self ) . __init__ ( * args , ** kwargs ) self . type = 'select' self . attributes [ self . EVENT_ONCHANGE ] = "var params={};params['value']=document.getElementById('%(id)s').value;" "sendCallbackParam('%(id)s','%(evt)s',params);" % { 'id' : self . identifier , 'evt' : self . EVENT_ONCHANGE } self . _selected_item = None self . _selected_key = None
Args:
            kwargs: See Widget.__init__()