Ejemplo n.º 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()
Ejemplo n.º 2
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()
Ejemplo n.º 3
0
 def onSearch(self, event):
     keyword = self.search.GetValue()
     self.result = controller.searchRecords(keyword) # result数目不对
     self.setList()