Avaiga / taipy

Turns Data and AI algorithms into production-ready web applications in no time.
https://www.taipy.io
Apache License 2.0
10.94k stars 775 forks source link

Access Gui-Core viz elements from the root of taipy gui builder #418

Closed FlorianJacta closed 5 months ago

FlorianJacta commented 10 months ago

All Gui-Core visual elements should be accessible through the Taipy Gui Builder API.

This should work:

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

with tgb.Page() as page:
    tgb.scenario(None)

Gui(page=page).run()
FlorianJacta commented 7 months ago

Is it really solved? This is still not working on my side

image

FlorianJacta commented 6 months ago

Any update on this?

dinhlongviolin1 commented 6 months ago

Did you try tgb.gui_core.scenario

FlorianJacta commented 6 months ago
C:\Users\jacta\.conda\envs\enterprise_3_1\lib\site-packages\taipy\gui\gui.py:774: TaipyGuiWarning: on_change(): callback function raised an exception:
module 'taipy.gui.builder' has no attribute 'gui_core'

Not working here

dinhlongviolin1 commented 5 months ago

right now, on 3.1, you can use this syntax to access the gui_core

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

with tgb.Page() as page:
    tgb.taipy_gui_core.scenario(None)

Gui(page=page).run()
dinhlongviolin1 commented 5 months ago

I will allow the access of all element from the root of tgb

FlorianJacta commented 5 months ago

We believe that this behavior should be included in the 3.1.1 version as it seems quite important for the use of Taipy with Python @dinhlongviolin1 @FabienLelaquais What do you think?

FlorianJacta commented 5 months ago

We believe that this behavior should be included in the 3.1.1 version as it seems quite important for the use of Taipy with Python

Any thoughts @dinhlongviolin1 @FabienLelaquais @jrobinAV ?

jrobinAV commented 5 months ago

I agree it should be in the 3.1.1 if possible.

FabienLelaquais commented 5 months ago

I also agree.

dinhlongviolin1 commented 5 months ago

Sure why not, let me do it