From cc376b18c3ce5d44f16db51b50cef9c72f43d3d1 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Sun, 22 May 2022 22:20:31 +0200 Subject: [PATCH] switched theme to streamlit; added icon on download buttons --- stand.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stand.py b/stand.py index d0115c4..7c7b109 100644 --- a/stand.py +++ b/stand.py @@ -39,15 +39,15 @@ with col1: with col2: with open("output.h5", "rb") as f: - st.download_button("Download hdf5", f, file_name="output.h5") + st.download_button("📥 hdf5", f, file_name="output.h5") with col3: xlsx = to_excel_binary(df) - st.download_button("Download xlsx", xlsx, file_name="output.xlsx") + st.download_button("📥 xlsx", xlsx, file_name="output.xlsx") with col4: csv = df.to_csv() - st.download_button("Download csv", csv, file_name="output.csv") + st.download_button("📥 csv", csv, file_name="output.csv") # st.stop() @@ -71,6 +71,8 @@ response = AgGrid( sortable=True, resizable=True, + theme="streamlit", + fit_columns_on_grid_load=True, reload_data=changed,