🤖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

    Scheduled Pinned Locked Moved UIFlow
    1 Posts 1 Posters 1.4k Views
    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 Offline
      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post