I am trying to add a value (4) to my list through a button, but I don’t see any change on the GUI. However, I see that my list is updated in the Python console and if I refresh the page, I see the correct list displayed. Is it normal?
from taipy import Gui
list_a = [1,2,3]
md = “””
<|Add value|button|on_action=add_value|>
<|{list_a}|>
“””
def add_value(state):
print(“Before”, state.list_a)
state.list_a.append(4)
print(“After”, state.list_a)
Gui(md).run()
Thank you in advance