(self, type, name, attrs={}, select_default=False,
                 called_as_base_class=False, index=None)
select_default: for RADIO and multiple-selection SELECT controls, pick
         the first item as the default if no 'selected' HTML attribute is
         present
select_default: for RADIO and multiple-selection SELECT controls, pick
         the first item as the default if no 'selected' HTML attribute is
         present
select_default : for RADIO and multiple - selection SELECT controls pick the first item as the default if no selected HTML attribute is present
def __init__(self, type, name, attrs={}, select_default=False,
                 called_as_base_class=False, index=None):
        """
        select_default: for RADIO and multiple-selection SELECT controls, pick
         the first item as the default if no 'selected' HTML attribute is
         present

        """
        if not called_as_base_class:
            raise NotImplementedError()

        self.__dict__["type"] = type.lower()
        self.__dict__["name"] = name
        self._value = attrs.get("value")
        self.disabled = False
        self.readonly = False
        self.id = attrs.get("id")
        self._closed = False

        # As Controls are merged in with .merge_control(), self.attrs will
        # refer to each Control in turn -- always the most recently merged
        # control.  Each merged-in Control instance corresponds to a single
        # list item: see ListControl.__doc__.
        self.items = []
        self._form = None

        self._select_default = select_default
        self._clicked = False
def __init__ ( self , type , name , attrs = { } , select_default = False , called_as_base_class = False , index = None ) : if not called_as_base_class : raise NotImplementedError ( ) self . __dict__ [ "type" ] = type . lower ( ) self . __dict__ [ "name" ] = name self . _value = attrs . get ( "value" ) self . disabled = False self . readonly = False self . id = attrs . get ( "id" ) self . _closed = False # As Controls are merged in with .merge_control(), self.attrs will # refer to each Control in turn -- always the most recently merged # control.  Each merged-in Control instance corresponds to a single # list item: see ListControl.__doc__. self . items = [ ] self . _form = None self . _select_default = select_default self . _clicked = False