library/ncurses_tools/cursestest.py

16 lines
242 B
Python
Raw Normal View History

2012-03-09 16:28:38 -05:00
#!/usr/bin/env python
import curses
def windowLayout(stdscr):
w = curses.newwin(5,10,10,10)
w.box()
2012-03-10 00:51:38 -05:00
w.refresh()
w.getch()
w2 = w.derwin(2,7,2,2)
w2.box()
w2.refresh()
w2.getch()
2012-03-10 00:42:58 -05:00
curses.wrapper(windowLayout)