예제 #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()
예제 #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()
예제 #3
0
파일: search_tool.py 프로젝트: cmal/bqd_hr
 def onSearch(self, event):
     keyword = self.search.GetValue()
     self.result = controller.searchRecords(keyword) # result数目不对
     self.setList()