<filename>apps/example_apps/scrolling_test/main.py
menu_name = "Scrolling test"

i = None 
o = None

from ui import Menu, Printer, Listbox, PathPicker

callback = None

def init_app(input, output):
    global callback, i, o
    i = input; o = output
    lb_contents = [["Very long listbox option name", 1], ["Even longer option name", 2]]
    lb=Listbox(lb_contents, i, o, "Scrolling test listbox")
    pp=PathPicker('/', i, o)
    main_menu_contents = [
    ["Command with very long name", lb.activate],
    ["Command with an even longer name", pp.activate],
    ["Exit", 'exit']]
    main_menu = Menu(main_menu_contents, i, o, "Scrolling test menu")
    callback = main_menu.activate

