def run(): global root global ctrl global out root = ui.load_view() ctrl = root["ctrl"] out = root["out"] ctrl.delegate = KBControlDelegate() root.present("sheet")