taipy icon indicating copy to clipboard operation
taipy copied to clipboard

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

Open FlorianJacta opened this issue 2 years ago • 4 comments

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 avatar Nov 13 '23 09:11 FlorianJacta

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

image

FlorianJacta avatar Jan 23 '24 18:01 FlorianJacta

Any update on this?

FlorianJacta avatar Mar 01 '24 10:03 FlorianJacta

Did you try tgb.gui_core.scenario

dinhlongviolin1 avatar Mar 04 '24 08:03 dinhlongviolin1

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

FlorianJacta avatar Mar 05 '24 10:03 FlorianJacta

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 avatar Mar 15 '24 09:03 dinhlongviolin1

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

dinhlongviolin1 avatar Mar 15 '24 09:03 dinhlongviolin1

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 avatar Mar 29 '24 16:03 FlorianJacta

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 ?

FlorianJacta avatar Apr 03 '24 08:04 FlorianJacta

I agree it should be in the 3.1.1 if possible.

jrobinAV avatar Apr 03 '24 09:04 jrobinAV

I also agree.

FabienLelaquais avatar Apr 03 '24 11:04 FabienLelaquais

Sure why not, let me do it

dinhlongviolin1 avatar Apr 03 '24 16:04 dinhlongviolin1