diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-12-22 21:50:01 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-12-22 21:50:01 (GMT) |
commit | 72a18a6659049fa5ea870257240d568094d0f226 (patch) | |
tree | 79a2e410bac1678e1949dd59d16e4eb4921ad92e /Demo/curses | |
parent | 48f224c877c739031df928c05a98206b5cecfbcd (diff) | |
download | cpython-72a18a6659049fa5ea870257240d568094d0f226.zip cpython-72a18a6659049fa5ea870257240d568094d0f226.tar.gz cpython-72a18a6659049fa5ea870257240d568094d0f226.tar.bz2 |
Update this demo to use curses.panel
Diffstat (limited to 'Demo/curses')
-rw-r--r-- | Demo/curses/ncurses.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Demo/curses/ncurses.py b/Demo/curses/ncurses.py index 782d17f..96aa142 100644 --- a/Demo/curses/ncurses.py +++ b/Demo/curses/ncurses.py @@ -6,6 +6,7 @@ # module. Currently, only the panel demos are ported. import curses +from curses import panel def wGetchar(win = None): if win == None: win = stdscr @@ -30,7 +31,7 @@ def saywhat(text): def mkpanel(color, rows, cols, tly, tlx): win = curses.newwin(rows, cols, tly, tlx) - pan = win.new_panel() + pan = panel.new_panel(win) if curses.has_colors(): if color == curses.COLOR_BLUE: fg = curses.COLOR_WHITE @@ -45,7 +46,7 @@ def mkpanel(color, rows, cols, tly, tlx): return pan def pflush(): - curses.update_panels() + panel.update_panels() curses.doupdate() def fill_panel(pan): |