parameters: (self, text)
return_statement: return self.find_again(text)
docstring: 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.
docstring_summary: Search for selected text with previous dialog preferences.
docstring_tokens: Search for selected text with previous dialog preferences .
function: 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)
function_tokens: def find_selection ( self , text ) : pat = text . get ( "sel.first" , "sel.last" ) if pat : self . engine . setcookedpat ( pat ) return self . find_again ( text )