Slide 22
Slide 22 text
ʲྫʳαΠυόʔʹFormΛදࣔ͢Δ
import streamlit as s
t
# PITCH_TYPES, THROWSDictionaryͰ͢
from interfaces.view.label import PITCH_TYPES, THROW
S
st.sidebar.markdown
(
""
"
# ϘʔϧΛܾΊΔ
""
"
)
# valueΛselectboxͷϥϕϧʹ͍ͨ࣌͠lambdaؔΛڬΉ
p_throw = st.sidebar.selectbox
(
"ར͖"
,
THROWS.keys()
,
format_func=lambda x: THROWS[x
]
)
pitch_speed = st.sidebar.slider
(
'ٿʢkm/hʣ', 70, 170, 150,
5
)
pitch_type = st.sidebar.selectbox
(
"ٿछ"
,
PITCH_TYPES.keys()
,
format_func=lambda x: PITCH_TYPES[x
]
)