Esempio n. 1
0
 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)
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     """Set self's contents."""
     Trait.super(Container, self).__init__(*args, **kwargs)
     self.contents = kwargs.pop("contents", [])
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     """Set self's contents."""
     self.sections = kwargs.pop("sections")
     Trait.super(SectionedContainer, self).__init__(*args, **kwargs)
Esempio n. 4
0
 def __init__(self, *args, **kwargs):
     """Set self's subcell position."""
     Trait.super(SubcellPositionable, self).__init__(*args, **kwargs)
     self.subcell = kwargs.pop("subcell", subcell)
Esempio n. 5
0
 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")
Esempio n. 6
0
 def __init__(self, *args, **kwargs):
     """Set self's position."""
     Trait.super(Positionable, self).__init__(*args, **kwargs)
     self.position = kwargs.pop("cell", self.position)