Skip to content

Commit 8b42206

Browse files
Mike ProsserMike Prosser
authored andcommitted
revert sample_panel
1 parent 4e22efd commit 8b42206

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

examples/sample/sample_panel.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,18 @@
88

99
st.title("Sample Panel")
1010

11-
col1, col2, col3 = st.columns([0.4, 0.3, 0.3])
11+
col1, col2 = st.columns([0.4, 0.6])
1212

1313
with col1:
14-
st.markdown("**Type**")
1514
st.write("String")
1615
st.write("Integer")
1716
st.write("Float")
1817
st.write("Boolean")
1918
st.write("List")
2019

2120
with col2:
22-
st.markdown("**Set Values**")
23-
st.write(panel.get_value("sample_string"))
24-
st.write(panel.get_value("sample_int"))
25-
st.write(panel.get_value("sample_float"))
26-
st.write(panel.get_value("sample_bool"))
27-
st.write(panel.get_value("float_values"))
28-
29-
with col3:
30-
st.markdown("**Default Values**")
31-
st.write(panel.get_value("missing_string", "0"))
32-
st.write(panel.get_value("missing_int", 0))
33-
st.write(panel.get_value("missing_float", 0.0))
34-
st.write(panel.get_value("missing_bool", False))
35-
st.write(panel.get_value("missing_list", [0.0]))
21+
st.write(panel.get_value("sample_string", ""))
22+
st.write(panel.get_value("sample_int", 0))
23+
st.write(panel.get_value("sample_float", 0.0))
24+
st.write(panel.get_value("sample_bool", False))
25+
st.write(panel.get_value("float_values", []))

0 commit comments

Comments
 (0)