lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
250 stars 161 forks source link

Member functions cannot be converted to pointers #103

Closed amirgon closed 3 years ago

amirgon commented 3 years ago

For example,

arc = lv.arc(scr)
a=lv.anim_t()
a.init()
a.set_exec_cb(lv.arc.set_value)

returns:

SyntaxError: Cannot convert 'function' to pointer!

See https://github.com/lvgl/lv_examples/issues/83#issuecomment-727646923

stale[bot] commented 3 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

amirgon commented 3 years ago

This can be worked around using lambda. Only advantage is performance, but not sure that is worth the effort. Closing for now.