Message box (lv_msgbox) Error

Using latest build from Kevin Schlosser lvgl_micropython

Which is great !!! thank you Kevin for picking up the baton on this project !

MicroPython v1.24.0-preview.39.g411d66586.dirty on 2024-06-24; Generic ESP32 module with SPIRAM with ESP32

# m_box = lv.msgbox(lv.screen_active()) # shows box
m_box = lv.msgbox(lv.screen_active(), "So", "Hellow World Again", {"Ok", "Cancel", None}, True)

got error

Traceback (most recent call last):
  File "<stdin>", line 177, in <module>
TypeError: function takes 1 positional arguments but 5 were given

So I don’t know where this error falls…
On LVGL Widgets or the LVGL micropython bindings

So it appears the way it functioned in LVGL v8 no longer holds true for v9
LVGL manual needs to be updated to reflect this.

Using the C example was able to create the message box…

m_box = lv.msgbox(None)
# m_box.add_title("So")
m_box.set_size(200, 100)
m_box.add_text("Hello World\n")
m_box.add_footer_button("YES")
m_box.add_footer_button("NO")
m_box.add_event_cb(msg_box_cb, lv.EVENT.VALUE_CHANGED, None)

But still having issues with the callback…

def msg_box_cb(event):
	if event.get_code() == lv.EVENT.VALUE_CHANGED:
		print(event.get_current_target().get_active_btn_text())
		# looking for YES/NO