class_docstr: Dialog for searching multiple files.
class_docstr_tok: ["Dialog","for","searching","multiple","files","."]
docstr: Grep for search pattern in file path. The default command is bound
  to <Return>.
  
  If entry values are populated, set OutputWindow as stdout
  and perform search.  The search dialog is closed automatically
  when the search begins.
docstr_tok: ["Grep","for","search","pattern","in","file","path",".","The","default","command","is","bound","to","<","Return",">",".","If","entry","values","are","populated",",","set","OutputWindow","as","stdout","and","perform","search",".","The","search","dialog","is","closed","automatically","when","the","search","begins","."]
code: def default_command(self, event=None):
      """Grep for search pattern in file path. The default command is bound
      to <Return>.
  
      If entry values are populated, set OutputWindow as stdout
      and perform search.  The search dialog is closed automatically
      when the search begins.
      """
      prog = self.engine.getprog()
      if not prog:
          return
      path = self.globvar.get()
      if not path:
          self.top.bell()
          return
      from idlelib.outwin import OutputWindow  # leave here!
  
      save = sys.stdout
      try:
          sys.stdout = OutputWindow(self.flist)
          self.grep_it(prog, path)
      finally:
          sys.stdout = save
  
file_path: cpython/Lib/idlelib/grep.py
imports: import fnmatch
  import os
  import sys
  from tkinter import StringVar, BooleanVar
  from tkinter.ttk import Checkbutton
  from idlelib.searchbase import SearchDialogBase
  from idlelib import searchengine
label_desc: Use image node_id 6 for calling the GrepDialog obj's underlying member method code with example usage: obj.default_command(event) without return types