-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit-test.py
33 lines (25 loc) · 961 Bytes
/
unit-test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import streamlit as st
import streambox as sk
def main():
st.title("Streamlit Session")
st.subheader("User Info")
st.write(sk.streamlit.get_user_info())
st.subheader("Active Session ID")
st.write(sk.streamlit.get_session_id())
st.subheader("All Session IDs")
st.write(sk.streamlit.get_all_sessions())
chk_footer = st.checkbox("Hide Footer", value=True)
if chk_footer:
sk.streamlit.hide_footer()
chk_hamburger = st.checkbox("Hide hamburger menu", value=True)
if chk_hamburger:
sk.streamlit.hide_hamburger_menu()
chk_radio = st.checkbox("No default radio selection", value=True)
if chk_radio:
sk.hide_default_radio_selection()
list_options = ["-", "Option 1", "Option 2", "Option 3", "Option 4"]
else:
list_options = ["Option 1", "Option 2", "Option 3", "Option 4"]
st.radio("Sample questions", options=list_options)
if __name__ == '__main__':
main()