(text, insert_tags=None)
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.
Create or reuse a singleton ReplaceDialog instance.
Create or reuse a singleton ReplaceDialog instance .
def replace(text, insert_tags=None):
    """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, insert_tags=insert_tags)
def replace ( text , insert_tags = None ) : root = text . _root ( ) engine = searchengine . get ( root ) if not hasattr ( engine , "_replacedialog" ) : engine . _replacedialog = ReplaceDialog ( root , engine ) dialog = engine . _replacedialog dialog . open ( text , insert_tags = insert_tags )