fix(examples) remove cast in MP scripts (#2354)
After https://github.com/lvgl/lv_binding_micropython/pull/161 merged, it is no longer needed to cast the result of 'e.get_target()' Also, additional small fixes to allow CI improvements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
def event_cb(e):
|
||||
mbox = lv.msgbox.__cast__(e.get_current_target())
|
||||
print("Button " + mbox.get_active_btn_text() + " clicked")
|
||||
mbox = e.get_current_target()
|
||||
print("Button %s clicked" % mbox.get_active_btn_text())
|
||||
|
||||
btns = ["Apply", "Close", ""]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user