Slight changes to make adding books more pleasant
This commit is contained in:
parent
3487b66393
commit
1abaec4b0a
Binary file not shown.
|
@ -336,7 +336,7 @@ class bookBrowser(browserWindow):
|
|||
('Authors',30,None),
|
||||
('Title',60,None)]
|
||||
|
||||
cs = [(' u', 'update'), (' d', 'delete selected'), (' c', 'categorize'), (' a', 'add selected to category')]
|
||||
cs = [(' u', 'update'), (' d', 'delete selected'), (' c', 'categorize'), (' a', 'add selected to category'), (' r', 'refresh')]
|
||||
|
||||
|
||||
# redefinable functions
|
||||
|
@ -434,6 +434,9 @@ class bookBrowser(browserWindow):
|
|||
elif ch == 97: #a
|
||||
self.addBooksToCategory()
|
||||
self.refresh()
|
||||
elif ch == 114: #r
|
||||
self.refreshBooks()
|
||||
self.refresh()
|
||||
if ch == 100:
|
||||
count=0
|
||||
for s in self.selected[0:self.hl-1]:
|
||||
|
|
|
@ -305,13 +305,13 @@ class BookForm(FormWindow):
|
|||
if book != {}:
|
||||
self._set_entries(book)
|
||||
self.refresh()
|
||||
self._mv_focus(+7)
|
||||
self._mv_focus(+12)
|
||||
if self.hl==1: # lookup by lccn
|
||||
book = self.lookup_lccn(self.entries[1].value)
|
||||
if book != {}:
|
||||
self._set_entries(book)
|
||||
self.refresh()
|
||||
self._mv_focus(+6)
|
||||
self._mv_focus(+11)
|
||||
else:
|
||||
FormWindow.handle_input(self,ch)
|
||||
|
||||
|
|
Loading…
Reference in New Issue