ifpen / chalk-it

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

Handle TAIPY_GUI_DESIGN_MODE #214

Closed bengaid closed 6 months ago

bengaid commented 6 months ago

Chalk'it page class should be extended to handle an extra parameter : TAIPY_GUI_DESIGN_MODE

please refactor working with back_end/render.py (which is responible for Docker image rendering using gunicorn)

User story:

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

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

It's done. See taipy_integration branch.

bengaid commented 6 months ago

Great Ghiles, it is valided. Thanks :