Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| # Function to display popup message | |
| def fn_display_popup_message(lv_text): | |
| """Display popup message""" | |
| st.text(lv_text) | |
| # Function to display user Error, Warning or Success Message | |
| def fn_display_status_messages(lv_text, lv_type, ui_processing_message): | |
| """Display user Info, Error, Warning or Success Messages""" | |
| if lv_type == "Success": | |
| with ui_processing_message.container(): | |
| st.success(lv_text) | |
| elif lv_type == "Error": | |
| with ui_processing_message.container(): | |
| st.error(lv_text) | |
| elif lv_type == "Warning": | |
| with ui_processing_message.container(): | |
| st.warning(lv_text) | |
| else: | |
| with ui_processing_message.container(): | |
| st.info(lv_text) |