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)
| 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. |
nothing calls this directly
no test coverage detected