Skip to content

Unix version demo code displays a blank window. #270

@gmeader

Description

@gmeader

Describe the bug
I successfully built lvgl_micropy_unix on a freshly installed Lubuntu 24.10 machine,
python3 make.py unix DISPLAY=sdl_display INDEV=sdl_pointer

I copied the Python code example for Unix/macOS into a file named demo.py

Running ./lvgl_micropy_unix demo.py displays a window for an instant, then it disappears.
Adding a time.sleep(15) at the end of the demo code keeps the window displayed for 15 sec.
However the window is empty with black background, It has a title bar labelled "LVGL MP".
Changing the bg color hex value in lv.color_hex() does not change the background color of the window.

Expected behavior
Expected to see a window with a slider displayed in it.

I need to know the OS and OS version of the machine that compiled the binary. If using a VM then I need to know the OS and OS version the VM is running. (WSL == VM)

  • OS: Lubuntu 24.10

Build Command

python3 make.py unix DISPLAY=sdl_display INDEV=sdl_pointer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions