There was an error while loading. Please reload this page.
1 parent 9e6ca96 commit dbf17f7Copy full SHA for dbf17f7
1 file changed
issues/gh-13646/app.py
@@ -0,0 +1,12 @@
1
+import streamlit as st
2
+
3
+class test_class:
4
+ def __init__(self, text, value):
5
+ self.text = text
6
+ self.valu = value
7
8
+elements = [
9
+ test_class("A", 1),
10
+ test_class("B", 2)
11
+]
12
+st.multiselect("Test", elements, format_func=lambda x: x.text)
0 commit comments