MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/idlelib/grep.py:71–88  ·  view source on GitHub ↗

Create search dialog for searching for a phrase in the file system. Uses SearchDialogBase as the basis for the GUI and a searchengine instance to prepare the search. Attributes: flist: filelist.Filelist instance for OutputWindow parent. globvar: Stri

(self, root, engine, flist)

Source from the content-addressed store, hash-verified

69 needwrapbutton = 0
70
71 def __init__(self, root, engine, flist):
72 """Create search dialog for searching for a phrase in the file system.
73
74 Uses SearchDialogBase as the basis for the GUI and a
75 searchengine instance to prepare the search.
76
77 Attributes:
78 flist: filelist.Filelist instance for OutputWindow parent.
79 globvar: String value of Entry widget for path to search.
80 globent: Entry widget for globvar. Created in
81 create_entries().
82 recvar: Boolean value of Checkbutton widget for
83 traversing through subdirectories.
84 """
85 super().__init__(root, engine)
86 self.flist = flist
87 self.globvar = StringVar(root)
88 self.recvar = BooleanVar(root)
89
90 def open(self, text, searchphrase, io=None):
91 """Make dialog visible on top of others and ready to use.

Callers

nothing calls this directly

Calls 3

StringVarClass · 0.90
BooleanVarClass · 0.90
superClass · 0.85

Tested by

no test coverage detected