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_3.py (510B)
1 # 2 # Demonstrate flex grow. 3 # 4 5 cont = lv.obj(lv.scr_act()) 6 cont.set_size(300, 220) 7 cont.center() 8 cont.set_flex_flow(lv.FLEX_FLOW.ROW) 9 10 obj = lv.obj(cont) 11 obj.set_size(40, 40) # Fix size 12 13 obj = lv.obj(cont) 14 obj.set_height(40) 15 obj.set_flex_grow(1) # 1 portion from the free space 16 17 obj = lv.obj(cont) 18 obj.set_height(40) 19 obj.set_flex_grow(2) # 2 portion from the free space 20 21 obj = lv.obj(cont) 22 obj.set_size(40, 40) # Fix size. It is flushed to the right by the "grow" items 23