def add_cmdline_content(self, s, attr):
    s = s.rstrip('\n')
    from pudb.ui_tools import SelectableText
    self.cmdline_contents.append(urwid.AttrMap(SelectableText(s), attr, ('focused ' + attr)))
    self.cmdline_list.set_focus_valign('bottom')
    self.cmdline_list.set_focus((len(self.cmdline_contents) - 1), coming_from='above')
    self.set_cmdline_state(True)
def add_cmdline_content(self, s, attr):
    s = s.rstrip('\n')
    from pudb.ui_tools import SelectableText
    self.cmdline_contents.append(urwid.AttrMap(SelectableText(s), attr, ('focused ' + attr)))
    self.cmdline_list.set_focus_valign('bottom')
    self.cmdline_list.set_focus((len(self.cmdline_contents) - 1), coming_from='above')
    self.set_cmdline_state(True)