MCPcopy
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/tools/console/options.py:84–95  ·  view source on GitHub ↗
(self, master, help_widget: OptionHelp)

Source from the content-addressed store, hash-verified

82
83class OptionListWalker(urwid.ListWalker):
84 def __init__(self, master, help_widget: OptionHelp):
85 self.master = master
86 self.help_widget = help_widget
87
88 self.index = 0
89 self.focusobj = None
90
91 self.opts = sorted(master.options.keys())
92 self.maxlen = max(len(i) for i in self.opts)
93 self.editing = False
94 self.set_focus(0)
95 self.master.options.changed.connect(self.sig_mod)
96
97 def sig_mod(self, *args, **kwargs):
98 self.opts = sorted(self.master.options.keys())

Callers

nothing calls this directly

Calls 3

set_focusMethod · 0.95
keysMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected