parameters: (text)
docstring: Create or reuse a singleton ReplaceDialog instance.
  
      The singleton dialog saves user entries and preferences
      across instances.
  
      Args:
          text: Text widget containing the text to be searched.
docstring_summary: Create or reuse a singleton ReplaceDialog instance.
docstring_tokens: Create or reuse a singleton ReplaceDialog instance .
function: def replace(text):
      """Create or reuse a singleton ReplaceDialog instance.
  
      The singleton dialog saves user entries and preferences
      across instances.
  
      Args:
          text: Text widget containing the text to be searched.
      """
      root = text._root()
      engine = searchengine.get(root)
      if not hasattr(engine, "_replacedialog"):
          engine._replacedialog = ReplaceDialog(root, engine)
      dialog = engine._replacedialog
      dialog.open(text)
function_tokens: def replace ( text ) : root = text . _root ( ) engine = searchengine . get ( root ) if not hasattr ( engine , "_replacedialog" ) : engine . _replacedialog = ReplaceDialog ( root , engine ) dialog = engine . _replacedialog dialog . open ( text )