MCPcopy
hub / github.com/mitmproxy/mitmproxy / show_quickhelp

Method show_quickhelp

mitmproxy/tools/console/statusbar.py:175–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 return k
174
175 def show_quickhelp(self) -> None:
176 if not self.master.options.console_quickhelp_visible:
177 self._w = urwid.Pile([])
178 return
179 self.ensure_bottom_bar_is_visible()
180 if w := self.master.window:
181 s = w.focus_stack()
182 focused_widget = type(s.top_widget())
183 is_top_widget = len(s.stack) == 1
184 else: # on startup
185 focused_widget = flowlist.FlowListBox
186 is_top_widget = True
187 focused_flow = self.master.view.focus.flow
188 qh = quickhelp.make(focused_widget, focused_flow, is_top_widget)
189 self.top._w, self.bottom._w = qh.make_rows(self.master.keymap)
190
191 def prompt_done(self) -> None:
192 self.prompting = None

Callers 7

__init__Method · 0.95
sig_updateMethod · 0.95
sig_options_updateMethod · 0.95
cbMethod · 0.95
prompt_doneMethod · 0.95

Calls 5

focus_stackMethod · 0.80
top_widgetMethod · 0.80
make_rowsMethod · 0.80
makeMethod · 0.45