ifpen / chalk-it

Drag-and-drop Python webapps
https://ifpen.github.io/chalk-it/
Apache License 2.0
49 stars 7 forks source link

Filter TaipyOnInit #194

Closed bengaid closed 8 months ago

bengaid commented 8 months ago

When page is at the main scope

image

See this program

from taipy.gui import Gui
from chlkt import *

gui = Gui()

a = 1
b = 5
c = a + b

def on_change(state, var, val):
    if (var == "a" or var == "b"):
        state.c = state.a + state.b

page = ChalkitPage("01_sliders_value.xprjson")
gui.add_page("page", page)
gui.run(run_browser=True, use_reloader=False)
GhilesHideur commented 8 months ago

It's done. See taipy_integration branch.

bengaid commented 8 months ago

Thanks Ghiles, solved!