(text)
return engine._searchdialog
Return the new or existing singleton SearchDialog instance.

    The singleton dialog saves user entries and preferences
    across instances.

    Args:
        text: Text widget containing the text to be searched.
Return the new or existing singleton SearchDialog instance.
Return the new or existing singleton SearchDialog instance .
def _setup(text):
    """Return the new or existing singleton SearchDialog 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, "_searchdialog"):
        engine._searchdialog = SearchDialog(root, engine)
    return engine._searchdialog
def _setup ( text ) : root = text . _root ( ) engine = searchengine . get ( root ) if not hasattr ( engine , "_searchdialog" ) : engine . _searchdialog = SearchDialog ( root , engine ) return engine . _searchdialog