You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buttonhelp='''As you don't have a touch screen, you need to use the buttons to navigate:
30
-
31
-
- If you have a joystick and at least 2 buttons, then use the joystick to move around. Use one of the buttons to ENTER and another to go BACK.
32
-
33
-
- If you have 3 buttons, then one is PREVIOUS, one is ENTER and one is NEXT. To go back, press PREVIOUS and NEXT together.
19
+
self._add_label(screen, preamble, is_header=True)
34
20
35
-
- If you have just 2 buttons, then one is PREVIOUS, the other is NEXT. To ENTER, press both at the same time. To go back, long-press the PREVIOUS button.
36
-
'''
21
+
buttonhelp_intro="As you don't have a touch screen, you need to use the buttons to navigate:"
22
+
buttonhelp_items= [
23
+
"If you have a joystick and at least 2 buttons, then use the joystick to move around. Use one of the buttons to ENTER and another to go BACK.",
24
+
"If you have 3 buttons, then one is PREVIOUS, one is ENTER and one is NEXT. To go back, press PREVIOUS and NEXT together.",
25
+
"If you have just 2 buttons, then one is PREVIOUS, the other is NEXT. To ENTER, press both at the same time. To go back, long-press the PREVIOUS button.",
26
+
]
37
27
touchhelp="Swipe from the left edge to go back and from the top edge to open the menu."
38
28
frommposimportInputManager
39
29
ifInputManager.has_pointer():
40
-
label.set_text(f'''
41
-
{touchhelp}
42
-
''')
30
+
self._add_label(screen, touchhelp)
43
31
else:
44
-
label.set_text(f'''
45
-
{buttonhelp}
46
-
''')
47
-
label.set_long_mode(lv.label.LONG_MODE.WRAP)
32
+
self._add_label(screen, buttonhelp_intro)
33
+
foriteminbuttonhelp_items:
34
+
self._add_label(screen, f"• {item}")
48
35
49
36
self.dontshow_checkbox=lv.checkbox(screen)
50
37
self.dontshow_checkbox.set_text("Don't show again")
0 commit comments