How to hide, disable components or clear screen?

Hello. Thanks in advanced for your help.

I’m new using Streamlit, and I made my first app conversion to this tool. I have 4 selectbox in sidebar , when I select any of its elements, in the “middle” of screen something happens depending that selection. The problem is, when I select other options, the info of prior selected actions remains on screen, I need to know, how to hide or clear the screen in each selection I do.


Hi @thunderroy
Have a look at the streamlit docs.

  1. widgets usually have a disabled parameter, or you can use if statements to toggle states.
  2. for clear screen, have a look at st.empty()


Thanks @Shawn_Pereira I change my app to use multipages.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.