def render(self, size, focus=False):
        attr_map = self._attr_map
        if focus and self._focus_map is not None:
            attr_map = self._focus_map
        canv = self._original_widget.render(size, focus=focus)
        canv = CompositeCanvas(canv)
        canv.fill_attr_apply(attr_map)
        return canv
Render wrapped widget and apply attribute. Return canvas.
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/decoration.py/AttrMap.render