How to change the state of streamlit widgets using code

i want to change the state of stremlit widget once some task is done for example
i want to uncheck the checkbox widget using code once it is checked manually .

Also there should be option to to decide whether some widget should run every time or not also we should have option to change the state as well as visibility of particular widget

1 Like