the menu displays in the window properly now
authorJohn Ladan <jladan@uwaterloo.ca>
Sat, 10 Mar 2012 05:56:05 +0000 (00:56 -0500)
committerJohn Ladan <jladan@uwaterloo.ca>
Sat, 10 Mar 2012 05:56:05 +0000 (00:56 -0500)
cursestest.py

index 51d161e..ea7b475 100755 (executable)
@@ -28,8 +28,11 @@ def simplePrintw(stdscr):
     stdscr.refresh()
     stdscr.getch()
 
-def menutest(w, l):
+def menutest(stdscr, l):
     curses.curs_set(0)
+    (rows,cols)=stdscr.getmaxyx()
+    w = curses.newwin(10,40,(rows-10)/2, (cols-40)/2)
+    w.keypad(1)
     (rows,cols)=w.getmaxyx()
     i=0
     for mitem in l: