first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
def event_cb(e):
|
||||
mbox = e.get_current_target()
|
||||
print("Button %s clicked" % mbox.get_active_btn_text())
|
||||
|
||||
btns = ["Apply", "Close", ""]
|
||||
|
||||
mbox1 = lv.msgbox(lv.scr_act(), "Hello", "This is a message box with two buttons.", btns, True)
|
||||
mbox1.add_event_cb(event_cb, lv.EVENT.VALUE_CHANGED, None)
|
||||
mbox1.center()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue