Module pysect.slice.slice
Expand source code
import pyboiler.generic as generic
class VerticalShells(generic.slot_storage):
__slots__ = ("perimeters", "other")
def __init__(self, perimeters: int):
self.perimeters = perimeters
self.other = None
class HorizontalShells(generic.slot_storage):
__slots__ = ("bottom", "top")
def __init__(self, bottom: int, top: int):
self.bottom = bottom
self.top = top
class Slice(generic.slot_storage):
__slots__ = ("name", "verti", "horiz")
def __init__(self):
self.name = "Slice"
self.verti = VerticalShells(3)
self.horiz = HorizontalShells(6, 5)
Classes
class HorizontalShells (bottom: int, top: int)
-
Children of this class must have slots defined
Expand source code
class HorizontalShells(generic.slot_storage): __slots__ = ("bottom", "top") def __init__(self, bottom: int, top: int): self.bottom = bottom self.top = top
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var bottom
-
Return an attribute of instance, which is of type owner.
var top
-
Return an attribute of instance, which is of type owner.
class Slice
-
Children of this class must have slots defined
Expand source code
class Slice(generic.slot_storage): __slots__ = ("name", "verti", "horiz") def __init__(self): self.name = "Slice" self.verti = VerticalShells(3) self.horiz = HorizontalShells(6, 5)
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var horiz
-
Return an attribute of instance, which is of type owner.
var name
-
Return an attribute of instance, which is of type owner.
var verti
-
Return an attribute of instance, which is of type owner.
class VerticalShells (perimeters: int)
-
Children of this class must have slots defined
Expand source code
class VerticalShells(generic.slot_storage): __slots__ = ("perimeters", "other") def __init__(self, perimeters: int): self.perimeters = perimeters self.other = None
Ancestors
- pyboiler.generic.slot_storage
- pyboiler.generic.pyboiler_generic
Instance variables
var other
-
Return an attribute of instance, which is of type owner.
var perimeters
-
Return an attribute of instance, which is of type owner.