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