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

BUG-lov of types different from strings not working with Python API #1254

Closed
2 tasks
FlorianJacta opened this issue May 2, 2024 · 0 comments · Fixed by #1295
Closed
2 tasks

BUG-lov of types different from strings not working with Python API #1254

FlorianJacta opened this issue May 2, 2024 · 0 comments · Fixed by #1295
Assignees
Labels
🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟨 Priority: Medium Not blocking but should be addressed

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented May 2, 2024

Description
Using the Python API without binding the lov variable, the lov can create issues. It creates an issue when the lov is not of type strings like the example below.

image

How to reproduce

import taipy.gui.builder as tgb
from taipy.gui import Gui


selected = [2019]
years_list = [2019, 2020, 2021, 2022, 2023]

with tgb.Page() as page:
    tgb.selector(
            value="{selected}",
            lov=years_list,
            dropdown=True,
            multiple=True,)


Gui(page).run()

Expected behavior
The behavior when the variable is bound and not bound should be the same. The code above should work by using a default adapter.

Runtime environment

  • Taipy: 3.1.1

Acceptance Criteria

  • Ensure new code is unit tested, and check code coverage is at least 90%
  • Create related issue in taipy-doc for documentation and Release Notes if relevant
@FlorianJacta FlorianJacta added 💥Malfunction Addresses an identified problem. 🖰 GUI Related to GUI 🟧 Priority: High Must be addressed as soon 🟨 Priority: Medium Not blocking but should be addressed and removed 🟧 Priority: High Must be addressed as soon labels May 2, 2024
@dinhlongviolin1 dinhlongviolin1 self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟨 Priority: Medium Not blocking but should be addressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants