PSE, Nak-Nak, Navajo, PI

and patching favicon.ico and index.html in streamlit-lib
This commit is contained in:
2025-07-23 20:51:02 +02:00
parent 8b5cd8c10e
commit aa153c4ec9
5 changed files with 261 additions and 233 deletions

View File

@@ -7,8 +7,9 @@ standard_output = ('#### Um den HILFE-Text zu einzelnen Funktionen aufzurufen bi
' Eingabefeld aufrufen.')
st.set_page_config(
page_title="tebarius Mysteryhelfer (web)",
page_icon="./favicon.ico",
# we do this by patching static-files of streamlit in the container
# page_title="tebarius Mysteryhelfer (web)",
# page_icon="./favicon.ico",
layout="wide"
)
@@ -144,6 +145,21 @@ def auswahl_verarbeiten():
elif auswahl == "Slash and Pipe->Text":
st.session_state.output_text = tools.slashpipe_to_text(text)
st.session_state.map_data = None
elif auswahl == "PSE: O.zahl<->Symbol":
st.session_state.output_text = tools.periodensystem(text)
st.session_state.map_data = None
elif auswahl == "Nak-Nak -> Text":
st.session_state.output_text = tools.naknak_to_text(text)
st.session_state.map_data = None
elif auswahl == "Navajo -> Text":
st.session_state.output_text = tools.navajo_to_text(text)
st.session_state.map_data = None
elif auswahl == "Kreiszahl PI":
st.session_state.output_text = tools.pi_suche(text)
st.session_state.map_data = None
elif auswahl == "REPLACE":
st.session_state.output_text = tools.REPLACE(text)
st.session_state.map_data = None
elif auswahl == "REPLACE":
st.session_state.output_text = tools.REPLACE(text)
st.session_state.map_data = None
@@ -212,6 +228,15 @@ option = st.sidebar.radio("hidden_label",
"Tomtom->Text",
"Text->Slash and Pipe",
"Slash and Pipe->Text",
"PSE: O.zahl<->Symbol",
"Nak-Nak -> Text",
"Navajo -> Text",
"Kreiszahl PI",
"",
"",
"",
"",
"",
"",
),
key='option',