mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
6568d3301329831ac9f6d7a1c5e9b3ca64f7552d
- Extract _apply_default_styles() helper to eliminate 12+ repeated widget style calls - Extract _add_click_handler() helper to consolidate 6 repeated event registrations - Consolidate backend config getters into single _get_backend_config() method - Simplify badgehub_app_to_mpos_app() with safer .get() defaults instead of try-except - Extract _cleanup_temp_file(), _update_progress(), _show_progress_bar(), _hide_progress_bar() helpers - Refactor uninstall_app() and download_and_install() to use new progress helpers - Use getattr() for cleaner attribute checking Eliminates ~85 lines of duplicated logic while preserving all functionality, comments, and debug prints. Improves maintainability and code clarity.
Main repository for MicroPythonOS.
See https://MicroPythonOS.com/ and https://docs.MicroPythonOS.com/ for more info.
Languages
Python
75.3%
C
11.5%
JavaScript
7.2%
HTML
3.5%
Shell
1.4%
Other
1%