mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
example(calendar): fix lv_example_calendar_1.py
This commit is contained in:
parent
7efd153402
commit
b466913494
@ -3,7 +3,7 @@ def event_handler(e):
|
||||
code = e.get_code()
|
||||
|
||||
if code == lv.EVENT.VALUE_CHANGED:
|
||||
source = e.get_target_obj()
|
||||
source = e.get_current_target_obj()
|
||||
date = lv.calendar_date_t()
|
||||
if source.get_pressed_date(date) == lv.RES.OK:
|
||||
calendar.set_today_date(date.year, date.month, date.day)
|
||||
|
Loading…
x
Reference in New Issue
Block a user