Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 최댓값
- Machine Learning
- dendrogram
- append()
- nan
- matplotlib
- pandas
- elbow method
- Python
- del
- insert()
- 분류 결과표
- sklearn
- 반복문
- 덴드로그램
- list
- string
- function
- data
- Dictionary
- numpy
- analizer
- 최솟값
- len()
- wcss
- hierarchical_clustering
- IN
- DataFrame
- count()
- DataAccess
Archives
- Today
- Total
개발공부
[Streamlit] 버튼(Button) 만들기 본문
Streamlit의 button() 함수를 이용하면 버튼을 만들 수 있다.
버튼의 리턴값은 True / False로 구분된다.
import streamlit as st
def main():
st.button('버튼')
if __name__ == '__main__':
main()

버튼 클릭시 버튼클릭 문구 출력하기
import streamlit as st
def main():
if st.button('버튼'):
st.text('버튼클릭')
if __name__ == '__main__':
main()


'Python > Streamlit' 카테고리의 다른 글
| [Streamlit] 체크 박스(Check box) 만들기 (0) | 2022.05.20 |
|---|---|
| [Streamlit] 라디오(Radio) 버튼 만들기 (0) | 2022.05.20 |
| [Streamlit] Dataframe 출력하기 (0) | 2022.05.20 |
| [Streamlit] 화면에 글자 출력하는 방법 (0) | 2022.05.20 |
| [Streamlit] 스트림릿(Streamlit) 설치 방법 및 "Hello World" 출력 (0) | 2022.05.19 |