MCPcopy
hub / github.com/mitmproxy/mitmproxy / set_focus

Method set_focus

mitmproxy/tools/console/options.py:125–132  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

123 return self.focus_obj, self.index
124
125 def set_focus(self, index):
126 self.editing = False
127 name = self.opts[index]
128 opt = self.master.options._options[name]
129 self.index = index
130 self.focus_obj = self._get(self.index, self.editing)
131 self.help_widget.update_help_text(opt.help)
132 self._modified()
133
134 def get_next(self, pos):
135 if pos >= len(self.opts) - 1:

Callers 4

__init__Method · 0.95
sig_modMethod · 0.95
stop_editingMethod · 0.95
keypressMethod · 0.45

Calls 3

_getMethod · 0.95
update_help_textMethod · 0.80
_modifiedMethod · 0.80

Tested by

no test coverage detected