mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
11 lines
322 B
Python
11 lines
322 B
Python
def event_cb(e):
|
|
mbox = e.get_target_obj()
|
|
print("Button %s clicked" % mbox.get_active_button_text())
|
|
|
|
buttons = ["Apply", "Close", ""]
|
|
|
|
mbox1 = lv.msgbox(lv.screen_active(), "Hello", "This is a message box with two buttons.", buttons, True)
|
|
mbox1.add_event(event_cb, lv.EVENT.VALUE_CHANGED, None)
|
|
mbox1.center()
|
|
|