You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
File Manager app: add home dir shortcut
This commit is contained in:
@@ -25,6 +25,8 @@ class FileManager(Activity):
|
||||
self.file_explorer.align(lv.ALIGN.CENTER, 0, 0)
|
||||
# Attach event callback
|
||||
self.file_explorer.add_event_cb(self.file_explorer_event_cb, lv.EVENT.ALL, None)
|
||||
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.HOME_DIR, "M:/home/user/")
|
||||
self.file_explorer.explorer_set_quick_access_path(lv.EXPLORER.IMAGE_DIR, "M:/data/images/")
|
||||
self.setContentView(screen)
|
||||
|
||||
def file_explorer_event_cb(self, event):
|
||||
|
||||
Reference in New Issue
Block a user