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_scroll_1.py (702B)
1 # 2 # Demonstrate how scrolling appears automatically 3 # 4 # Create an object with the new style 5 panel = lv.obj(lv.scr_act()) 6 panel.set_size(200, 200) 7 panel.center() 8 9 child = lv.obj(panel) 10 child.set_pos(0, 0) 11 label = lv.label(child) 12 label.set_text("Zero") 13 label.center() 14 15 child = lv.obj(panel) 16 child.set_pos(-40, 100) 17 label = lv.label(child) 18 label.set_text("Left") 19 label.center() 20 21 child = lv.obj(panel) 22 child.set_pos(90, -30) 23 label = lv.label(child) 24 label.set_text("Top") 25 label.center() 26 27 child = lv.obj(panel) 28 child.set_pos(150, 80) 29 label = lv.label(child) 30 label.set_text("Right") 31 label.center() 32 33 child = lv.obj(panel) 34 child.set_pos(60, 170) 35 label = lv.label(child) 36 label.set_text("Bottom") 37 label.center() 38