Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update dynamically created UI? #1232

Open
vishalvora opened this issue Apr 25, 2024 · 3 comments
Open

How to update dynamically created UI? #1232

vishalvora opened this issue Apr 25, 2024 · 3 comments
Assignees
Labels
💬 Discussion Requires some discussion and decision 🖰 GUI Related to GUI 🟩 Priority: Low Low priority and doesn't need to be rushed

Comments

@vishalvora
Copy link

I created the dynamic UI with for loop. How to update the text on button click?

    for a in State.text:
        tgb.text(a)
@vishalvora vishalvora added the 📈 Improvement Improvement of a feature. label Apr 25, 2024
@FlorianJacta
Copy link
Member

Have you checked this Getting Started and Tutorial?

@FlorianJacta FlorianJacta self-assigned this Apr 25, 2024
@FlorianJacta FlorianJacta added 🖰 GUI Related to GUI 🟩 Priority: Low Low priority and doesn't need to be rushed 💬 Discussion Requires some discussion and decision and removed 📈 Improvement Improvement of a feature. labels Apr 25, 2024
@FredLL-Avaiga
Copy link
Member

FredLL-Avaiga commented May 13, 2024

use a dict with dynamically specified bound variables
idx += 1
adict[f"v{idx"] = a
tgb.text("{adict.v" + str(idx) + "}")

@FlorianJacta
Copy link
Member

Do you need any more help? If not, I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Discussion Requires some discussion and decision 🖰 GUI Related to GUI 🟩 Priority: Low Low priority and doesn't need to be rushed
Projects
None yet
Development

No branches or pull requests

3 participants