GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. lesept
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    lesept

    @lesept

    0
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    lesept Unfollow Follow

    Latest posts made by lesept

    • RE: How to update a label

      @kl3m3n Thanks for your answer. Yes this is (micro)python, used on an ESP32.

      posted in Frequently Asked Questions (FAQ)
      L
      lesept
    • RE: How to update a label

      I think I found it: just make a composite string for the entire ble message

      text = f'@text TXT:"{red} {green} {blue}"\r\n'
      ble.write(text)
      
      posted in Frequently Asked Questions (FAQ)
      L
      lesept
    • How to update a label

      Hi,
      I'd like to update the text of a label using values coming from sliders. I create a text variable containing the content I want to show in the label, such as

      text = f'{red} {green} {blue}'
      

      How can I display this text in my label? It seems I can only use fixed texts and not dynamic texts.

      If I try

      ble.write("@text TXT:text\r\n")
      

      the label only displays 'text', instead of something like '125, 34 56'

      More generally, can I use the color values from the sliders to change the BCG of another widget?

      posted in Frequently Asked Questions (FAQ)
      L
      lesept