This commit is contained in:
Thomas Farstrike
2026-02-27 17:22:14 +01:00
parent 484695d87d
commit 3459440a59
@@ -122,15 +122,9 @@ class Launcher(Activity):
label.set_style_text_align(lv.TEXT_ALIGN.CENTER, lv.PART.MAIN)
# ----- events --------------------------------------------------
app_cont.add_event_cb(
lambda e, fullname=app.fullname: AppManager.start_app(fullname),
lv.EVENT.CLICKED, None)
app_cont.add_event_cb(
lambda e, cont=app_cont: self.focus_app_cont(cont),
lv.EVENT.FOCUSED, None)
app_cont.add_event_cb(
lambda e, cont=app_cont: self.defocus_app_cont(cont),
lv.EVENT.DEFOCUSED, None)
app_cont.add_event_cb(lambda e, fullname=app.fullname: AppManager.start_app(fullname),lv.EVENT.CLICKED, None)
app_cont.add_event_cb(lambda e, cont=app_cont: self.focus_app_cont(cont),lv.EVENT.FOCUSED, None)
app_cont.add_event_cb(lambda e, cont=app_cont: self.defocus_app_cont(cont),lv.EVENT.DEFOCUSED, None)
if focusgroup:
focusgroup.add_obj(app_cont)