Initialize Variables that save search state. The dialogs bind these to the UI elements present in the dialogs.
(self, root)
| 20 | """Handles searching a text widget for Find, Replace, and Grep.""" |
| 21 | |
| 22 | def __init__(self, root): |
| 23 | '''Initialize Variables that save search state. |
| 24 | |
| 25 | The dialogs bind these to the UI elements present in the dialogs. |
| 26 | ''' |
| 27 | self.root = root # need for report_error() |
| 28 | self.patvar = StringVar(root, '') # search pattern |
| 29 | self.revar = BooleanVar(root, False) # regular expression? |
| 30 | self.casevar = BooleanVar(root, False) # match case? |
| 31 | self.wordvar = BooleanVar(root, False) # match whole word? |
| 32 | self.wrapvar = BooleanVar(root, True) # wrap around buffer? |
| 33 | self.backvar = BooleanVar(root, False) # search backwards? |
| 34 | |
| 35 | # Access methods |
| 36 |
nothing calls this directly
no test coverage detected