¿Cómo elimino una ventana de maldición en Python y restauro la ventana de fondo?

Diablos, estoy trabajando en maldiciones de Python y tengo mi ventana inicial con initscr () y creo varias ventanas nuevas para superponerlas, quiero saber si puedo eliminar estas ventanas y restaurar la pantalla estándar sin tener que rellenarlo ¿Hay alguna manera? También puedo preguntar si alguien puede decirme la diferencia entre una ventana, una subventana, una almohadilla y una almohadilla secundaria.

Tengo este codigo:

stdscr = curses.initscr()
####Then I fill it with random letters
stdscr.refresh()
newwin=curses.newwin(10,20,5,5)
newwin.touchwin()
newwin.refresh()

####I want to delete newwin here so that if I write stdscr.refresh() newwin won't appear

stdscr.touchwin()
stdscr.refresh()

####And here it should appear as if no window was created.

Respuestas a la pregunta(1)

Su respuesta a la pregunta