curses : unexpected behaviour with pad
dody
dody at postaccesslite.com
Sat Sep 25 08:49:24 EDT 2004
> def main_1(stdscr):
> win=curses.newwin(0,0)
> pad=win.subpad(100,100) #<--- error
I found that the behaviour of curses silently considers
subpad of a WINDOW object as also a WINDOW instead of PAD,
whether you uses subpad or subwin. try:
win=curses.newpad(0,0)
pad=win.subpad(100,100)
> def main_2(stscr):
> pad = curses.newpad(100, 100)
> a_panel= panel.new_panel(pad) #<--- error
Panel does not support PAD. you must use WINDOW. this should
works:
pad = curses.newwin(100, 100)
a_panel= panel.new_panel(pad)
--
Best regards,
dody mailto:dody at postaccesslite.com
More information about the Python-list
mailing list