Replies: 1 comment 2 replies
-
the fields of lv_span_t are not exposed to MicroPython because that structure is private. so what you need to do is the following.. mode = lv.obj()
mode_tileview = lv.tileview(mode)
mode_tileview_mode_a = mode_tileview.add_tile(0, 0, lv.DIR.RIGHT)
mode_spangroup_1 = lv.spangroup(mode_tileview_mode_a)
mode_spangroup_1_span = mode_spangroup_1.add_span()
style = mode_spangroup_1_span.get_style()
style.set_text_color(lv.color_hex(0xffffff))
mode_spangroup_1.set_span_style(mode_spangroup_1_span , style) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I trying to compile micropython with lvgl 9.2.1 to use the code generated by Gui Guider for the micropython simulator on my esp32 device
So far everything looks fine, for the basic examples. The script exported by Gui-Guider requires some small adjustments mostly for paths
When trying a more complex example I encountered this error
To add a little more context ...
One solution would be to patch the code and replace
.style.
with.get_style().
however I am looking for a solution that does not require modifications on the exported codeAny suggestion would be highly appreciated!!
Beta Was this translation helpful? Give feedback.
All reactions