From a6830ef23e4ac7b993e9ea85fef168b376574064 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 9 Mar 2026 23:13:37 +0100 Subject: [PATCH] ImageView: comments --- .../apps/com.micropythonos.imageview/assets/imageview.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal_filesystem/apps/com.micropythonos.imageview/assets/imageview.py b/internal_filesystem/apps/com.micropythonos.imageview/assets/imageview.py index d6981a4a..79e812fd 100644 --- a/internal_filesystem/apps/com.micropythonos.imageview/assets/imageview.py +++ b/internal_filesystem/apps/com.micropythonos.imageview/assets/imageview.py @@ -40,6 +40,8 @@ class ImageView(Activity): prev_label = lv.label(self.prev_button) prev_label.set_text(lv.SYMBOL.LEFT) prev_label.set_style_text_font(lv.font_montserrat_16, lv.PART.MAIN) + + # Invisible button, just for defocusing the prev and next buttons: self.play_button = lv.button(screen) self.play_button.align(lv.ALIGN.BOTTOM_MID,0,0) self.play_button.set_style_opa(lv.OPA.TRANSP, lv.PART.MAIN) @@ -167,12 +169,10 @@ class ImageView(Activity): if not focusgroup: print("WARNING: imageview.py could not get default focus group") return - print("got focus group") - # group.focus_obj(self.play_button) would be better but appears missing?! focused = focusgroup.get_focused() - print("got focus button") - #focused.remove_state(lv.STATE.FOCUSED) # this doesn't seem to work to remove focus if focused: + print(f"got focus button: {focused}") + #focused.remove_state(lv.STATE.FOCUSED) # this doesn't seem to work to remove focus print("checking which button is focused") if focused == self.next_button: print("next is focused")