Ah, really. I should have figured it out.
That’s correct. Seemingly I live too much n the C world
In case anyone needs it, here is an example:
def my_anim(target):
anim = lv.anim_t()
anim.init()
anim.set_time(1000)
anim.set_var(target)
anim.set_values(0, 100)
anim.set_custom_exec_cb(lambda a, v: target.set_x(v))
lv.anim_t.start(anim)
my_anim(btn)
Thank you for your help!