Make dialog visible on top of others and ready to use. Also, set the search to include the current selection (self.ok). Args: text: Text widget being searched. searchphrase: String phrase to search.
(self, text, searchphrase=None, *, insert_tags=None)
| 53 | self.insert_tags = None |
| 54 | |
| 55 | def open(self, text, searchphrase=None, *, insert_tags=None): |
| 56 | """Make dialog visible on top of others and ready to use. |
| 57 | |
| 58 | Also, set the search to include the current selection |
| 59 | (self.ok). |
| 60 | |
| 61 | Args: |
| 62 | text: Text widget being searched. |
| 63 | searchphrase: String phrase to search. |
| 64 | """ |
| 65 | SearchDialogBase.open(self, text, searchphrase) |
| 66 | self.ok = True |
| 67 | self.insert_tags = insert_tags |
| 68 | |
| 69 | def create_entries(self): |
| 70 | "Create base and additional label and text entry widgets." |