Open the search dialog. Module-level function to access the singleton SearchDialog instance and open the dialog. If text is selected, it is used as the search phrase; otherwise, the previous entry is used. No search is done with this command.
(text)
| 25 | return engine._searchdialog |
| 26 | |
| 27 | def find(text): |
| 28 | """Open the search dialog. |
| 29 | |
| 30 | Module-level function to access the singleton SearchDialog |
| 31 | instance and open the dialog. If text is selected, it is |
| 32 | used as the search phrase; otherwise, the previous entry |
| 33 | is used. No search is done with this command. |
| 34 | """ |
| 35 | pat = text.get("sel.first", "sel.last") |
| 36 | return _setup(text).open(text, pat) # Open is inherited from SDBase. |
| 37 | |
| 38 | def find_again(text): |
| 39 | """Repeat the search for the last pattern and preferences. |