(self, text)
return self.find_again(text)
Search for selected text with previous dialog preferences.

        Instead of using the same pattern for searching (as Find
        Again does), this first resets the pattern to the currently
        selected text.  If the selected text isn't changed, then use
        the prior search phrase.
Search for selected text with previous dialog preferences.
Search for selected text with previous dialog preferences .
def find_selection(self, text):
        """Search for selected text with previous dialog preferences.

        Instead of using the same pattern for searching (as Find
        Again does), this first resets the pattern to the currently
        selected text.  If the selected text isn't changed, then use
        the prior search phrase.
        """
        pat = text.get("sel.first", "sel.last")
        if pat:
            self.engine.setcookedpat(pat)
        return self.find_again(text)
def find_selection ( self , text ) : pat = text . get ( "sel.first" , "sel.last" ) if pat : self . engine . setcookedpat ( pat ) return self . find_again ( text )