def __init__(self, parent = None, options = None, value = None, **kwargs): Element.__init__(self, parent = parent, **kwargs) options = [] if options is None else options if value: if value in options: self.value = value else: raise XhtmlError, "Value is not in list of options" else: if len(options) > 0: self.value = options[0] else: self.value = None for an_option in options: option(parent = self, text = an_option) self.event_osc = events.Change(parent = self)
def __init__(self, parent, type = None, value = None, text = None, **kwargs): Element.__init__(self, parent = parent, text = text, type = type, value = value, **kwargs)
def __init__(self, parent = None, text = None, title = None, **kwargs): Element.__init__(self, parent = parent, text = text, title = title, **kwargs)
def __init__(self, parent, src = None, alt = None, height = None, width = None, longdesc = None, **kwargs): Element.__init__(self, parent = parent, src = src, alt = alt, height = height, width = width, longdesc = longdesc, **kwargs)
def __init__(self, parent, value = "", **kwargs): Element.__init__(self, parent = parent, value = value, **kwargs)
def __init__(self, parent = None, href = None, text = None, **kwargs): Element.__init__(self, parent = parent, text = text, href = href, **kwargs)
def __init__(self, parent, type, language, src = None, **kwargs): Element.__init__(self, parent = parent, type = type, language = language, src = src, **kwargs)
def __init__(self, parent, href, rel, type, **kwargs): Element.__init__(self, parent = parent, rel = rel, type = type, href = href, **kwargs)
def __init__(self, parent, text): Element.__init__(self, parent = parent, text = text) if text == parent.value: self.att.selected = "yes"