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