def render(self, size, focus=False):
        (maxcol,) = size
        text, attr = self.get_text()
        #assert isinstance(text, unicode)
        trans = self.get_line_translation( maxcol, (text,attr) )
        return apply_text_layout(text, attr, trans, maxcol)
Render contents with wrapping and alignment.  Return canvas.
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/widget.py/Text.render