def __init__(self, txt): self.t = urwid.Text(txt) w = urwid.AttrMap(self.t, 'body', 'focus') urwid.WidgetWrap.__init__(self, w)