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_msgbox_1.py (314B)
1 def event_cb(e): 2 mbox = e.get_current_target() 3 print("Button %s clicked" % mbox.get_active_btn_text()) 4 5 btns = ["Apply", "Close", ""] 6 7 mbox1 = lv.msgbox(lv.scr_act(), "Hello", "This is a message box with two buttons.", btns, True) 8 mbox1.add_event_cb(event_cb, lv.EVENT.VALUE_CHANGED, None) 9 mbox1.center() 10