acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_example_flex_4.py (307B)
1 # 2 # Reverse the order of flex items 3 # 4 cont = lv.obj(lv.scr_act()) 5 cont.set_size(300, 220) 6 cont.center() 7 cont.set_flex_flow(lv.FLEX_FLOW.COLUMN_REVERSE) 8 9 for i in range(6): 10 obj = lv.obj(cont) 11 obj.set_size(100, 50) 12 13 label = lv.label(obj) 14 label.set_text("Item: " + str(i)) 15 label.center() 16