Files
MicroPythonOS/draft_code/dropdown_switch.py
T
Thomas Farstrike f2ac71d6f2 Add draft_code
2025-06-13 09:55:17 +02:00

10 lines
212 B
Python

# Create a dropdown
dropdown = lv.dropdown(lv.screen_active())
dropdown.set_options("Option 1\nOption 2\nOption 3")
dropdown.align(lv.ALIGN.CENTER, 0, 0)
switch = lv.switch(lv.screen_active())
switch.center()