Module pysect.filament.filament

Expand source code
import pyboiler.generic as generic


class Meta(generic.slot_storage):
    __slots__ = ("diameter", "multiplier")

    def __init__(self, diameter, multiplier):
        self.diameter = diameter
        self.multiplier = multiplier


class Filament(generic.slot_storage):
    __slots__ = ("name", "meta", "other")

    def __init__(self):
        self.name = "Filament"
        self.meta = Meta(1.75, 1.0)
        self.other = None

Classes

class Filament

Children of this class must have slots defined

Expand source code
class Filament(generic.slot_storage):
    __slots__ = ("name", "meta", "other")

    def __init__(self):
        self.name = "Filament"
        self.meta = Meta(1.75, 1.0)
        self.other = None

Ancestors

  • pyboiler.generic.slot_storage
  • pyboiler.generic.pyboiler_generic

Instance variables

var meta

Return an attribute of instance, which is of type owner.

var name

Return an attribute of instance, which is of type owner.

var other

Return an attribute of instance, which is of type owner.

class Meta (diameter, multiplier)

Children of this class must have slots defined

Expand source code
class Meta(generic.slot_storage):
    __slots__ = ("diameter", "multiplier")

    def __init__(self, diameter, multiplier):
        self.diameter = diameter
        self.multiplier = multiplier

Ancestors

  • pyboiler.generic.slot_storage
  • pyboiler.generic.pyboiler_generic

Instance variables

var diameter

Return an attribute of instance, which is of type owner.

var multiplier

Return an attribute of instance, which is of type owner.