Пример #1
0
 def _search_string_not_async(self, text):
     return self._search_async([
         StringQueryState(filter=self.sfilter,
                          mode=StringQueryState.NOT_CONTAINS,
                          text=text)])
Пример #2
0
 def _search_string_all_async(self, text):
     return self._search_async([
         StringQueryState(filter=self.sfilter,
                          mode=StringQueryState.CONTAINS_ALL,
                          text=text)])
Пример #3
0
 def _search_string_exactly_async(self, text):
     return self._search_async([
         StringQueryState(filter=self.sfilter,
                          mode=StringQueryState.CONTAINS_EXACTLY,
                          text=text)])
Пример #4
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)