示例#1
0
def store_category(category):
    while True:
        clear()
        app = dialogs.prompt_option(get_public_apps(category), text="Please select an app", select_text="Details / Install", none_text="Back")
        if app:
            store_details(category, app)
            empty_local_app_cache()
        else:
            return
示例#2
0
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)
示例#3
0
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
			b.destroy()
		btn_ok.destroy()
		l_ok.destroy()
		btn_back.destroy()
		l_back.destroy()
		btn_menu.destroy()
		l_menu.destroy()
		win_header.destroy()
		win_quick.destroy()
		win_help.destroy()
		title.destroy()

torun = quick_launch_screen()
if torun:
	print("Running: %s" % torun)
	empty_local_app_cache()
	buttons.enable_menu_reset()
	gc.collect()
	pyb.info()
	
	import run_app
	if torun == "file_loader":
		run_app.run_app("apps/home/file_loader")
	else:	
		rbr = torun.get_attribute("reboot-before-run")
		if type(rbr) == str and rbr.lower() == "false":
			run_app.run_app(torun.main_path[:-3])
		run_app.reset_and_run(torun.main_path[:-3])
	
	#ugfx.area(0,0,ugfx.width(),ugfx.height(),0)