How can I make a frame that pops up when condition X is met, and disappears when a button in the frame is clicked?

Viewed 23

I have a condition that is met when the player's health is 0, and then a frame is created over the main screen that has a button (created using tkinter). When the user clicks this button I want both the frame and the button to disappear, revealing the frame that had been covered.

Thank you!

0 Answers
Related