def __init__(self, id=None, name=None, parent=None, **kwargs): """ Initiates a WebElement object (if no name is passed in it will default to id) """ Connectable.__init__(self) self._tagName = self.__class__.tagName self._tagSelfCloses = self.tagSelfCloses self._prefix = None self.id = id self.name = name or id self.parent = parent self.key = None self._style = None self._classes = None self._attributes = None self._clientSide = None self._childElements = None self.addChildElementsTo = self self.__scriptTemp__ = None self.__scriptContainer__ = None self.__objectTemp__ = None self._editable = None self.validator = None if kwargs: self.setProperties(kwargs)
def __init__(self, components, connections): '''__init__(connections, components) -> new composite connectable connections: a list of connections specified by strings components: a dictionary of {name:component} of components encapsulated in this composite ''' Connectable.__init__(self) self._connections = connections self._components = components self._chains = self._establishConnections() return
def __init__(self, components, connections): '''__init__(connections, components) -> new composite connectable connections: a list of connections specified by strings components: a dictionary of {name:component} of components encapsulated in this composite ''' Connectable.__init__(self) self._connections = connections self._components = components self._chains = self._establishConnections() return
def __init__(self, id=None, name=None, parent=None): """ Initiates a WebElement object (if no name is passed in it will default to id) """ Connectable.__init__(self) self.id = id self.name = name or id self.parent = parent self.style = {} self.classes = set() self.attributes = {} self.childElements = [] self.addChildElementsTo = self
def __init__(self, id=None, name=None, parent=None): """ Initiates a WebElement object (if no name is passed in it will default to id) """ Connectable.__init__(self) self.id = id self.name = name or id self.parent = parent self.style = {} self.classes = set() self.attributes = {} self.childElements = [] self.addChildElementsTo = self
def __init__(self): Connectable.__init__(self) return