I run a code in DP.py file, two window pops up (given below). I want to show/print both these pop-up windows on my streamlit app. (Both these are animated images showing seams). Don’t know how to do it please somebody help.
Hi @UjjwalG, welcome to the Streamlit community!
Can you post the code you are using, so it’s clearer what is triggering these popups?
In this case, you are using the OpenCV functionality to display pictures, which happens separate from Streamlit. You can use st.image
to show images inline in the Streamlit app.
The point is, if you don’t want to pop-up the windows, then you can remove these and any other lines that pop-up other windows:
cv2.destroyAllWindows()
cv2.imshow('Final', image)
Hi @randyzwitch
Can we also create ‘text pop-up’ window from Streamlit ?
for instance, I would like to create a text pop-up when a user clicks the button.
Appreciated for your support in advance
Brian
Same doubt.
If you find an answer pls post here
There isn’t a way built-in to Streamlit to make pop-up windows, but I suspect there is a way to do something using st.markdown
and custom html/javascript. Unfortunately, I don’t know enough about front-end development to provide an answer.
Hi @avik6028
We’ve resolved the ‘pup-up’ issue with bootstrap.
find this link Bootstrap 4 Modals
and try, will be helpful.
Hello Dishan
Thanks a lot.
I had also resolved the issue temporarily using Sessions in Streamlit.
Regards
Avik