def __init__(self, *args, **kwargs): """Set self's location after performing the rest of self's initialization.""" Trait.super(Locatable, self).__init__(*args, **kwargs) self.location = kwargs.pop("location", self.location)
def __init__(self, *args, **kwargs): """Set self's contents.""" Trait.super(Container, self).__init__(*args, **kwargs) self.contents = kwargs.pop("contents", [])
def __init__(self, *args, **kwargs): """Set self's contents.""" self.sections = kwargs.pop("sections") Trait.super(SectionedContainer, self).__init__(*args, **kwargs)
def __init__(self, *args, **kwargs): """Set self's subcell position.""" Trait.super(SubcellPositionable, self).__init__(*args, **kwargs) self.subcell = kwargs.pop("subcell", subcell)
def __init__(self, *args, **kwargs): """Set self's position.""" Trait.super(CellPositionable, self).__init__(*args, **kwargs) if not self.cell and "cell" in kwargs: self.cell = kwargs.pop("cell")
def __init__(self, *args, **kwargs): """Set self's position.""" Trait.super(Positionable, self).__init__(*args, **kwargs) self.position = kwargs.pop("cell", self.position)