def search_tex(self): value = self.form.m_searchCtrl_tex.GetValue() self.search_tex_val.clear() if value != '': indexes = function.find(value, self.info.for_search) self.tex_search = True self.search_tex_val.extend(self.info.build_search(indexes)) self.search_tex_index = indexes self.form.m_listBox_tex.Clear() self.form.m_listBox_tex.Set(self.search_tex_val.for_show) else: self.tex_search = False self.form.m_listBox_tex.Clear() self.form.m_listBox_tex.Set(self.info.for_show)
def search_unable(self): value = self.form.m_searchCtrl_unable.GetValue() self.search_unable_val.clear() if value != "": indexes = function.find(value, self.unable.for_search) self.unable_search = True self.search_unable_index = indexes self.search_unable_val.extend(self.info.build_search(indexes)) self.form.m_listBox_unable.Clear() self.form.m_listBox_unable.Set(self.search_unable_val.for_show) else: self.unable_search = False self.form.m_listBox_unable.Clear() self.form.m_listBox_unable.Set(self.unable.for_show)
def search_pass(self): value = self.form.m_searchCtrl_pass.GetValue() self.search_skip_val.clear() if value != '': indexes = function.find(value, self.skip.for_search) self.skip_search = True self.search_pass_index = indexes self.search_skip_val.extend(self.skip.build_search(indexes)) self.form.m_listBox_skip.Clear() self.form.m_listBox_skip.Set(self.search_skip_val.for_show) else: self.skip_search = False self.form.m_listBox_skip.Clear() self.form.m_listBox_skip.Set(self.skip.for_show)
def searching(self): value = self.frame.m_searchCtrl2.GetValue() if value != '': self.searched = True indexes = function.find(value, self.searched_list) self.searched_show.clear() self.search_list.clear() for index in indexes: self.searched_show.append(self.show_list[index]) self.search_list.append(self.key_list[index]) else: self.searched_show = self.show_list.copy() self.search_list = self.key_list.copy() self.searched = False self.frame.m_listBox_change.Clear() self.frame.m_listBox_change.Set(self.searched_show)