def __init__(self, text, escape_method): self.escape_method = escape_method super(TestResultWindow2, self).__init__(urwid.Filler(urwid.Text(text)))