def mk_textmodel(texel): model = TextModel() model.texel = texel model.linelengths = texel.get_linelengths() return model
def mk_textmodel(texel): model = TextModel() model.texel = texel return model