1
0
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:
Gabor Kiss-Vamosi 2023-03-23 03:35:07 +01:00
parent 7efd153402
commit b466913494

View File

@ -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)