MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / addoptions

Method addoptions

tools/python-3.11.9-amd64/Tools/demo/redemo.py:73–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 self.stringdisplay.bindtags(btags[1:] + btags[:1])
72
73 def addoptions(self):
74 self.frames = []
75 self.boxes = []
76 self.vars = []
77 for name in ('IGNORECASE',
78 'MULTILINE',
79 'DOTALL',
80 'VERBOSE'):
81 if len(self.boxes) % 3 == 0:
82 frame = Frame(self.master)
83 frame.pack(fill=X)
84 self.frames.append(frame)
85 val = getattr(re, name).value
86 var = IntVar()
87 box = Checkbutton(frame,
88 variable=var, text=name,
89 offvalue=0, onvalue=val,
90 command=self.recompile)
91 box.pack(side=LEFT)
92 self.boxes.append(box)
93 self.vars.append(var)
94
95 def getflags(self):
96 flags = 0

Callers 1

__init__Method · 0.95

Calls 5

FrameClass · 0.50
IntVarClass · 0.50
CheckbuttonClass · 0.50
packMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected