Exemple #1
0
 def onSearch(self, event):
     """
     Searches database based on the user's filter choice and keyword
     """
     filterChoice = self.categories.GetValue()
     keyword = self.search.GetValue()
     print("%s %s" % (filterChoice, keyword))
     self.bookResults = controller.searchRecords(filterChoice, keyword)
     self.setBooks()
 def onSearch(self, event):
     """
     Searches database based on the user's filter choice and keyword
     """
     filterChoice = self.categories.GetValue()
     keyword = self.search.GetValue()
     print "%s %s" % (filterChoice, keyword)
     self.bookResults = controller.searchRecords(filterChoice, keyword)
     self.setBooks()
Exemple #3
0
 def onSearch(self, event):
     keyword = self.search.GetValue()
     self.result = controller.searchRecords(keyword) # result数目不对
     self.setList()