You can also grab the return value of the button,
just like with any other button.
if st.download_button(...):
   st.write('Thanks for downloading!')
```
Additional resources:
https://blog.streamlit.io/0-88-0-release-notes/
https://share.streamlit.io/streamlit/release-demos/0.88/0.88/streamlit_app.py
https://docs.streamlit.io/library/api-reference/widgets/st.download_button
