from taipy import Gui import taipy.gui.builder as tgb from functi import add_source, delete_source,on_logout,on_my_clicking with tgb.Page() as menu_page: # type: ignore with tgb.part(render = "{is_logged_in}", id="taipy_menu") : # type: ignore tgb.menu(lov=[ ("Source_Management", "Sources"),("Post", "Post Management"),("Accueil", "Logging Out") ], on_action = on_my_clicking,width = "20vw") with tgb.Page() as source_page: # type: ignore with tgb.part(class_name="source_body") : tgb.text("Source Managements",class_name="Title_Page") with tgb.layout(columns="4fr 1",class_name="layout_top") : with tgb.part() : with tgb.layout(columns="1 1") : tgb.input("{source_}" ,label ="Source",change_delay = -1,action_on_blur = True,class_name="fullwidth ") tgb.button("Add", on_action = add_source) with tgb.part(class_name="table_s") : tgb.text("Liste des sources") tgb.table("{Source_table}",columns="source;categorie;last_update",editable = True, on_add = False,on_edit = False,on_delete = delete_source,class_name="header-plain table_t")