python (3.11.7)
    e                         d Z ddlmZ ddlmZmZmZmZmZm	Z	 ddl
mZ  G d d          Z G d de          Z
ed	k    r'dd
lmZ  eddd
           ddlmZ  ee
           dS dS )zBDefine SearchDialogBase used by Search, Replace, and Grep dialogs.    )Toplevel)FrameEntryLabelButtonCheckbuttonRadiobutton)
_setup_dialogc                   h    e Zd ZdZdZdZdZd ZddZddZ	d	 Z
d
 Zd ZddZ
d
 Zd ZddZd ZdS )SearchDialogBaseay  Create most of a 3 or 4 row, 3 column search dialog.
    The left and wide middle column contain:
    1 or 2 labeled text entry lines (make_entry, create_entries);
    a row of standard Checkbuttons (make_frame, create_option_buttons),
    each of which corresponds to a search engine Variable;
    a row of dialog-specific Check/Radiobuttons (create_other_buttons).
    The narrow right column contains command buttons
    (make_button, create_command_buttons).
    These are bound to functions that execute the command.
    Except for command buttons, this base class is not limited to items
    common to all three subclasses.  Rather, it is the Find dialog minus
    the "Find Next" command, its execution function, and the
    default_command attribute needed in create_widgets. The other
    dialogs override attributes and methods, the latter to replace and
    add widgets.
    z
Search DialogSearch   c                 H    || _         |j        | _        || _        d| _        dS )a[  Initialize root, engine, and top attributes.
        top (level widget): set in create_widgets() called from open().
        frame: container for all widgets in dialog.
        text (Text searched): set in open(), only used in subclasses().
        ent (ry): created in make_entry() called from create_entry().
        row (of grid): 0 in create_widgets(), +1 in make_entry/frame().
        default_command: set in subclasses, used in create_widgets().
        title (of dialog): class attribute, override in subclasses.
        icon (of dialog): ditto, use unclear if cannot minimize dialog.
        N)rootbellenginetop)selfr   r   s      F/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/idlelib/searchbase.py__init__zSearchDialogBase.__init__!   s&