How do I close a single window without exiting program in Python with curses?

Viewed 30

I am writing a Python Curses program, and I need to have a temporary pop-up window within a function. I call this function multiple times.

The way I am doing it right now, the window gets created in a function, I do what I need with it, and then it just gets hidden behind the main windows. Then when I need it again, a new window is created.

How would I either close the window entirely (instead of just drawing others on top of it), or access the same window again from within the function? I would rather not create the window in the main() function and pass it as an argument, but if that is the only option, I can do that.

Google has not yielded any answers from a search for "close window without exiting program curses".

0 Answers
Related