Is there a way to disable st.form_submit_button after input?

Hi all,

I have a similar problem. I used this example: Disable button during on_click function evalution to control the st.buttons.

But this does not work for st_submit_buttons. The here presented way is ok, if you shall have only one chance. But it does not work, if the st_submit_button shall activated / deactivated by callback / key.

Is there any other possibility to control st_submit_button from anywhere of the code?