caption = "Add a Book"
blabel = "Add"
labels = ["ISBN", "LCCN", "Title", "Subtitle", "Authors", "Edition",
- "Publishers", "Publish Date", "Publish Year", "Publish Month", "Publish location",
+ "Publisher", "Publish Date", "Publish Year", "Publish Month", "Publish location",
"Pages", "Pagination", "Weight"]
entries = []
self.drawRow(self.hl)
self.highlight()
-
- def returnBook():
+ def returnBook(self):
book = {}
for k,v in zip(self.labels, self.entries):
if v!="" and k.lower()!="publish date":
def eventLoop(self):
self.w.keypad(1)
self.refresh()
+ self.mvCursor(+len(self.entries[self.hl]))
self.highlight()
ch = self.w.getch()