Hi,
I try to use a custom_exec_cb
like below and it works well:
a1.set_custom_exec_cb(lambda a, v: btn1.set_x(v))
But the goal would be to get the animated object from a
in the lambda
function. I’ve tried this
a1.set_custom_exec_cb(lambda a, v: lv.obj_t(a.var).set_x(v))
and got:
AttributeError: no such attribute
So could you help me with how to cast a.var
to lv.obj_t
?