DROPDOWN... Key not pressed but getting callbacks

event.get_code() is getting many random values without button being pressed.
Is this related to some animation function?

simulator link…

I use a custom burst of… lv.tick_inc() and lv.task_handler() works with outher modules.
But dropdown requires multiple presses to display list.

solved my problem…

I filtered the callback first.

These are not random values. These are real events.
An event is triggered not only when a value change, but also when different parts are drawn, an object is queried etc.

You can see that if you parse the events: LVGL/MicroPython Simulator

As you noticed, handling all these events in Micropython is expensive, that’s why you should usually provide a filter when calling add_event_cb, which filters the events on the C side.