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)
def _search_string_exactly(self, text): return self.qe.search([ StringQueryState(filter=self.sfilter, mode=StringQueryState.CONTAINS_EXACTLY, text=text)])
def _search_string_not(self, text): return self.qe.search([ StringQueryState(filter=self.sfilter, mode=StringQueryState.NOT_CONTAINS, text=text)])
def _search_string_all(self, text): return self.qe.search([ StringQueryState(filter=self.sfilter, mode=StringQueryState.CONTAINS_ALL, text=text)])