class TranslationalUnit(Brick): def __init__(self, label, color=None, color2=None): self.label = label self.r = RibosomeBindingSite(None, color) self.p = ProteinCodingSequence(None, color2) def _path_width(self): return self.r._path_width() + self.p._path_width() def _width(self): return self.r._width() + self.p._width() def _draw_path(self, canvas, offset): _offset = offset + self.r.draw(canvas, offset) self.p.draw(canvas, _offset)
def __init__(self, label, color=None, color2=None): self.label = label self.r = RibosomeBindingSite(None, color) self.p = ProteinCodingSequence(None, color2)