You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Cleanups
This commit is contained in:
@@ -329,7 +329,7 @@ class AppDetail(Activity):
|
||||
|
||||
def uninstall_app(self, app_fullname):
|
||||
self.install_button.add_state(lv.STATE.DISABLED)
|
||||
self.install_label.set_text("Please wait...") # TODO: Put "Cancel" if cancellation is possible
|
||||
self.install_label.set_text("Please wait...")
|
||||
self.progress_bar.remove_flag(lv.obj.FLAG.HIDDEN)
|
||||
self.progress_bar.set_value(42, True)
|
||||
PackageManager.uninstall_app(app_fullname)
|
||||
@@ -344,7 +344,7 @@ class AppDetail(Activity):
|
||||
|
||||
def download_and_install(self, zip_url, dest_folder, app_fullname):
|
||||
self.install_button.add_state(lv.STATE.DISABLED)
|
||||
self.install_label.set_text("Please wait...") # TODO: Put "Cancel" if cancellation is possible
|
||||
self.install_label.set_text("Please wait...")
|
||||
self.progress_bar.remove_flag(lv.obj.FLAG.HIDDEN)
|
||||
self.progress_bar.set_value(20, True)
|
||||
try:
|
||||
|
||||
@@ -8,9 +8,6 @@ import mpos.ui
|
||||
from mpos.app.activity import Activity
|
||||
from mpos.content.intent import Intent
|
||||
from mpos.content.pm import PackageManager
|
||||
# the code uses things like:
|
||||
# mpos.ui.set_foreground_app(fullname)
|
||||
# Activity.startActivity(None, Intent(activity_class=main_activity))
|
||||
|
||||
def good_stack_size():
|
||||
stacksize = 24*1024
|
||||
@@ -81,7 +78,7 @@ def execute_script(script_source, is_file, cwd=None, classname=None):
|
||||
|
||||
""" Unused:
|
||||
# Run the script in a new thread:
|
||||
# TODO: check if the script exists here instead of launching a new thread?
|
||||
# NOTE: check if the script exists here instead of launching a new thread?
|
||||
def execute_script_new_thread(scriptname, is_file):
|
||||
print(f"main.py: execute_script_new_thread({scriptname},{is_file})")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user