from taipy.gui import Gui
import taipy.gui.builder as tgb
value: int = 10
value_selector = 10
def get_list(value):
return [str(i) for i in range(value)]
with tgb.Page() as page:
# Works
tgb.selector(value="{value_selector}", lov=lambda value: get_list(value))
# don't work
tgb.selector(value="{value_selector}",
lov=lambda value: get_list(value))
Gui(page=page).run(title="Frontend Demo")
Browsers
Chrome
OS
Windows
Version of Taipy
develop - 7/15/24
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.
What went wrong? 🤔
Lambda expressions are not working for no reason.
The second selector is not working.
Expected Behavior
It should work.
Steps to Reproduce Issue
Browsers
Chrome
OS
Windows
Version of Taipy
develop - 7/15/24
Acceptance Criteria
Code of Conduct