(self, ok=False)
return True
Search for and highlight next occurrence of pattern in text.

        No text replacement is done with this option.
Search for and highlight next occurrence of pattern in text.
Search for and highlight next occurrence of pattern in text .
def do_find(self, ok=False):
        """Search for and highlight next occurrence of pattern in text.

        No text replacement is done with this option.
        """
        if not self.engine.getprog():
            return False
        text = self.text
        res = self.engine.search_text(text, None, ok)
        if not res:
            self.bell()
            return False
        line, m = res
        i, j = m.span()
        first = "%d.%d" % (line, i)
        last = "%d.%d" % (line, j)
        self.show_hit(first, last)
        self.ok = True
        return True
def do_find ( self , ok = False ) : if not self . engine . getprog ( ) : return False text = self . text res = self . engine . search_text ( text , None , ok ) if not res : self . bell ( ) return False line , m = res i , j = m . span ( ) first = "%d.%d" % ( line , i ) last = "%d.%d" % ( line , j ) self . show_hit ( first , last ) self . ok = True return True