ppsingh commited on
Commit
bde7ffb
1 Parent(s): 61afaad

Create new file

Browse files
Files changed (1) hide show
  1. abc.py +32 -0
abc.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+
4
+ session_state = st.sessionstate.get(col1=False, col2=False, col3=False)
5
+
6
+ col1, col2, col3 = st.columns(3)
7
+
8
+ col1_one = col1.button("CARTE", key="1")
9
+ col2_one = col2.button("TABLEAU", key="2")
10
+ col3_one = col3.button("SYNTHÈSE", key="3")
11
+
12
+ if col1_one or session_state.col1:
13
+ session_state.col1 = True
14
+ session_state.col2 = False
15
+ session_state.col3 = False
16
+ sel_Map = st.selectbox("Choose Map type :", options=['Hello1', 'Hello2'], index=1)
17
+ if sel_Map == 'Hello1':
18
+ st.write("Hello world! 1")
19
+ elif sel_Map == 'Hello2':
20
+ st.write("Hello world! 2")
21
+
22
+ if col2_one or session_state.col2:
23
+ session_state.col1 = False
24
+ session_state.col2 = True
25
+ session_state.col3 = False
26
+ st.write("Hello world! 3")
27
+
28
+ if col3_one or session_state.col3:
29
+ session_state.col1 = False
30
+ session_state.col2 = False
31
+ session_state.col3 = True
32
+ st.write("Hello world! 4")