You are not logged in.

#1 2010-11-04 17:33:15

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

[Curses-Python] selective window access

Hi,

some time ago I started a curses interface. Now I stick to a barrier regarding window access. Is there any possibility to close window objects without calling

 curses.endwin() 

which closes the whole program. The only possible way in my opinion is to set the window object size to zero OR redrawing the main window via

 curses.window.clear() 

which deletes content. Unfortunatelly the documentation does not mention any function  like this for window objects created by newwin or initscr.

So, does anybody know a bit more about this topic?

Thanks in advance,

L-K

Offline

#2 2010-11-12 22:55:23

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: [Curses-Python] selective window access

I think delwin is what you're after, so you might want to try that, but it looks as though it has been missing from curses-python in the past.

See here, http://mail.python.org/pipermail/tutor/ … 44172.html

Offline

Board footer

Powered by FluxBB