Esempio n. 1
0
 def get_state(self):
     option = self.mode.get_selected_data()
     return StringQueryState(filter=self,
                             text=str(self.entry.get_text()),
                             mode=option and option.mode)
Esempio n. 2
0
 def _search_string_exactly(self, text):
     return self.qe.search([
         StringQueryState(filter=self.sfilter,
                          mode=StringQueryState.CONTAINS_EXACTLY,
                          text=text)])
Esempio n. 3
0
 def _search_string_not(self, text):
     return self.qe.search([
         StringQueryState(filter=self.sfilter,
                          mode=StringQueryState.NOT_CONTAINS,
                          text=text)])
Esempio n. 4
0
 def _search_string_all(self, text):
     return self.qe.search([
         StringQueryState(filter=self.sfilter,
                          mode=StringQueryState.CONTAINS_ALL,
                          text=text)])