🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Can't get m5Dial to display an image loaded via UIFlow2

    UIFlow
    1
    1
    12
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fernando Cardoso
      last edited by

      Referindo: Can't get m5Dial to display an image loaded via UIFlow2

      Hi everybody,

      I think UIFlow V2.3.1 has a major bug in the UI Component Image.
      When you insert an image, the following Python code is created:
      image0 = Widgets.Image("/flash/res/img/default.jpg", 139, 115, scale_x=1, scale_y=1)
      Python only has the path to the image, and the x and y coordinates as parameters.
      That's why the following error appears when compiling:
      TypeError: extra keyword arguments given

      You have to change the python code manually to:
      image0 = Widgets.Image("/flash/res/img/default.jpg", x=1, y=1)

      I think this kind of error in UiFlow is unacceptable.
      Adding a UI Component and then having to manually change the Python code!
      Has anyone else experienced this issue?

      Thanks.
      Fernando Cardoso

      1 Reply Last reply Reply Quote 0
      • First post
        Last post