def store_details(category, app): clear() empty_local_app_cache() with dialogs.WaitingMessage(text="Fetching app information...", title="TiLDA App Library"): app.fetch_api_information() clear() if dialogs.prompt_boolean(app.description, title = str(app), true_text = "Install", false_text="Back"): install(app) dialogs.notice("%s has been successfully installed" % app)
def store(): global apps_by_category clear() connect() with dialogs.WaitingMessage(text="Fetching app library...", title="TiLDA App Library") as message: categories = get_public_app_categories() category = dialogs.prompt_option(categories, text="Please select a category", select_text="Browse", none_text="Back") if category: store_category(category) else: main_menu()
def store(): global apps_by_category while True: empty_local_app_cache() clear() connect() with dialogs.WaitingMessage(text="Fetching app library...", title="TiLDA App Library"): categories = get_public_app_categories() category = dialogs.prompt_option(categories, text="Please select a category", select_text="Browse", none_text="Back") if category: store_category(category) else: return
def connect(): if not wifi.is_connected(): with dialogs.WaitingMessage(text=wifi.connection_text(), title="TiLDA App Library") as message: wifi.connect()