Select only checkbox

I have several checkboxes and I want to be able to select just one

st.text('20) Você tem conhecimento do plano de capacitação da CGP? ')

pt333 = st.checkbox('SIM', key=20)

 pt3331 = st.checkbox('NÃO', key=20)

Hi @01devjs, welcome to the community,

I think what you are looking for is a radio button, checkboxes are meant to be used for multi-selection. :slight_smile: Hope it helps !
ref : https://docs.streamlit.io/en/stable/api.html#streamlit.radio

genre = st.radio(
...     "What's your favorite movie genre",
...     ('Comedy', 'Drama', 'Documentary'))  
1 Like