Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

BUG-slider with labels=dict #379

Closed
FredLL-Avaiga opened this issue Aug 26, 2022 · 1 comment
Closed

BUG-slider with labels=dict #379

FredLL-Avaiga opened this issue Aug 26, 2022 · 1 comment
Assignees
Labels
Gui: Back-End Related to the back-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. 🟥 Priority: Critical Must be fixed ASAP

Comments

@FredLL-Avaiga
Copy link
Member

FredLL-Avaiga commented Aug 26, 2022

Description
When specifying a dict as value for the labels property of slider, the app crash

How to reproduce

slider_sel = "toto"
labels = {"toto": "label toto", "fred.png": "label png"}
num_labels = {str(x): f"Label {x}" for x in range (0, 101) if x % 25 == 0}

md = """
Demo Sliders with Labels as Dict

<|{slider_sel}|slider|lov=toto;tata;Fred;fred.png|labels={labels}|>

<|{slider_sel}|slider|labels={num_labels}|>
"""

Gui(md).run(use_reloader=False)

Expected behavior
No crash and the labels are shown

@FredLL-Avaiga FredLL-Avaiga added Gui: Back-End Related to the back-end side of Taipy GUI. 🟥 Priority: Critical Must be fixed ASAP labels Aug 26, 2022
@FredLL-Avaiga FredLL-Avaiga self-assigned this Aug 26, 2022
@FredLL-Avaiga
Copy link
Member Author

This one is for you @mshell99

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Gui: Back-End Related to the back-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. 🟥 Priority: Critical Must be fixed ASAP
Projects
None yet
Development

No branches or pull requests

2 participants