Code/app/personnalisation/interface.py
Fabrication du Numérique 120f5a7af8 Modifications mineures
2025-05-11 22:48:13 +02:00

26 lines
1003 B
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# interface.py app/personnalisation
import streamlit as st
from .ajout import ajouter_produit
from .modification import modifier_produit
from .import_export import importer_exporter_graph
def interface_personnalisation(G):
st.markdown("# Personnalisation des produits finaux")
with st.expander("Comment utiliser cet onglet ?", expanded=False):
st.markdown("""
1. Cliquez sur "Ajouter un produit final" pour créer un nouveau produit
2. Donnez un nom à votre produit
3. Sélectionnez une opération d'assemblage appropriée (si pertinent)
4. Choisissez les composants qui constituent votre produit dans la liste proposée
5. Sauvegardez votre configuration pour une réutilisation future
6. Vous pourrez par la suite modifier ou supprimer vos produits personnalisés
""")
st.markdown("---")
G = ajouter_produit(G)
G = modifier_produit(G)
G = importer_exporter_graph(G)
return G