[Tutor] Arrow keys in subwindows

Alan Gauld learn2program at gmail.com
Thu Jan 12 17:53:44 EST 2023



On 12/01/2023 16:17, paulf at quillandmouse.com wrote:

> I called stdscr.keypad(True), and then, within a class method,
> called mwin = stdscr.subwin(...), and then mwin.keypad(True). 

That should work.

> with it, and somehow it now worked. So, problem solved for now.

Glad to hear it, althugh its always nice to know why! :-)

>> <Shameless plug>
>> I have a book on programming curses with Python available
> 
> Actually, I have your ebook.

In that case, thanks. I hope it proves helpful.
The info on the function keys and keypad() is
in the chapter on the Keyboard...

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list