can now add categories from the category viewer
[public/library.git] / form.py
diff --git a/form.py b/form.py
index 899032c..cacdc87 100644 (file)
--- a/form.py
+++ b/form.py
@@ -209,3 +209,11 @@ class bookForm(formWindow):
                     self.updateEntries(book)
                 self.refresh()
         formWindow.handleInput(self,ch)
+
+class categoryForm(formWindow):
+    caption = "Add a Category"
+    blabel = "Add"
+    labels = ["Category"]
+
+    def returnValues(self):
+        return self.entries