(self)
Remove possible search result group
Remove possible search result group
Remove possible search result group
def remove_results(self):
        '''Remove possible search result group'''

        for i in self.db.groups:
            if i.id_ == 0:
                try:
                    i.entries.clear()
                    i.remove_group()
                except KPError as err:
                    self.control.draw_text(self.changed,
                                           (1, 0, err.__str__()),
                                           (4, 0, 'Press any key.'))
                    if self.control.any_key() == -1:
                        self.close()
                    return False
                else:
                    if (self.g_highlight >= len(self.cur_root.children) and
                            self.g_highlight != 0):
                        self.g_highlight -= 1
                    self.e_highlight = 0
                break
def remove_results ( self ) : for i in self . db . groups : if i . id_ == 0 : try : i . entries . clear ( ) i . remove_group ( ) except KPError as err : self . control . draw_text ( self . changed , ( 1 , 0 , err . __str__ ( ) ) , ( 4 , 0 , 'Press any key.' ) ) if self . control . any_key ( ) == - 1 : self . close ( ) return False else : if ( self . g_highlight >= len ( self . cur_root . children ) and self . g_highlight != 0 ) : self . g_highlight -= 1 self . e_highlight = 0 break