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

Method __init__

Lib/idlelib/searchengine.py:22–33  ·  view source on GitHub ↗

Initialize Variables that save search state. The dialogs bind these to the UI elements present in the dialogs.

(self, root)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

StringVarClass · 0.90
BooleanVarClass · 0.90

Tested by

no test coverage detected