DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR HTML
add a function to a button
if st.button('add'): result = add(1, 2) st.write('result: %s' % result)
Source by discuss.streamlit.io #
PREVIOUS
NEXT
Tagged:
#add
#function
#button
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit