refactor(event): use lv_event_get_orignal_target instead of current_target

This commit is contained in:
Gabor Kiss-Vamosi
2023-03-06 12:47:18 +01:00
parent 1d6ea3af51
commit 680d6d1a7d
41 changed files with 65 additions and 65 deletions

View File

@@ -1314,7 +1314,7 @@ def birthday_event_cb(e):
def calendar_event_cb(e,ta) :
global calendar
code = e.get_code()
obj = lv.calendar.__cast__(e.get_current_target())
obj = lv.calendar.__cast__(e.get_target())
if code == lv.EVENT.VALUE_CHANGED:
d = lv.calendar_date_t()
obj.get_pressed_date(d)