def view()

in memory_analyzer/frontend/frontend_utils.py [0:0]


def view(stdscr, pages):
    """
    Format the data in a list of pretty tables that will be the pages of the
    curses UI, then activate the nCurses UI.
    """
    pages_as_tables = []
    titles = []
    for page in pages:
        titles.append(page.title)
        table = format_summary_output(page)
        pages_as_tables.append(table_as_list_of_strings(table))
    if pages_as_tables:
        win = memanz_curses.Window(stdscr, pages_as_tables, titles)
        win.run()