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_handler(e):
|
||||
code = e.get_code()
|
||||
obj = lv.roller.__cast__(e.get_target())
|
||||
obj = e.get_target()
|
||||
if code == lv.EVENT.VALUE_CHANGED:
|
||||
option = " "*10
|
||||
obj.get_selected_str(option, len(option))
|
||||
|
||||
@@ -2,7 +2,7 @@ import fs_driver
|
||||
|
||||
def event_handler(e):
|
||||
code = e.get_code()
|
||||
obj = lv.roller.__cast__(e.get_target())
|
||||
obj = e.get_target()
|
||||
if code == lv.EVENT.VALUE_CHANGED:
|
||||
option = " "*10
|
||||
obj.get_selected_str(option, len(option))
|
||||
|
||||
Reference in New Issue
Block a user