added exit function
authorJohn Ladan <jladan@uwaterloo.ca>
Thu, 15 Mar 2012 20:07:43 +0000 (16:07 -0400)
committerJohn Ladan <jladan@uwaterloo.ca>
Thu, 15 Mar 2012 20:07:43 +0000 (16:07 -0400)
librarian.py

index 877a402..ce4635b 100755 (executable)
@@ -183,5 +183,6 @@ def browseMenu():
 m = [("Browse Library", browseMenu),
      ("Add Book or other item", addForm),
      ("Modify/Update record", updateMenu),
-     ("Remove book from catalogue", deleteMenu)]
+     ("Remove book from catalogue", deleteMenu),
+     ("Exit", exit)]
 curses.wrapper(menutest, m)