lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
259 stars 166 forks source link

Python 3.8 issue #357

Open ExtraTon618 opened 1 month ago

ExtraTon618 commented 1 month ago

The cloned code doesn't compile with Python 3.8. due to the addition of *getuser... operator on gen_mpy.py. I have changed this to be compatible with previous versions of Python. Please commit this! Thanks a lot ! gen_mpy.patch

diff --git a/gen/gen_mpy.py b/gen/gen_mpy.py index 23749b7..0b8437e 100644 --- a/gen/gen_mpy.py +++ b/gen/gen_mpy.py @@ -1847,8 +1847,6 @@ def get_user_data(func, func_name = None, containing_struct = None, containing_s if not func_name: func_name = get_arg_name(func.type)

print('/ --> callback: func_name = %s, args = %s /' % (func_name, repr(args)))

 user_data_found = False