MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / __init__

Method __init__

mitmproxy/tools/console/statusbar.py:54–71  ·  view source on GitHub ↗
(self, master: mitmproxy.tools.console.master.ConsoleMaster)

Source from the content-addressed store, hash-verified

52
53class ActionBar(urwid.WidgetWrap):
54 def __init__(self, master: mitmproxy.tools.console.master.ConsoleMaster) -> None:
55 self.master = master
56 self.top = urwid.WidgetWrap(urwid.Text(""))
57 self.bottom = urwid.WidgetWrap(urwid.Text(""))
58 super().__init__(urwid.Pile([self.top, self.bottom]))
59 self.show_quickhelp()
60 signals.status_message.connect(self.sig_message)
61 signals.status_prompt.connect(self.sig_prompt)
62 signals.status_prompt_onekey.connect(self.sig_prompt_onekey)
63 signals.status_prompt_command.connect(self.sig_prompt_command)
64 signals.window_refresh.connect(self.sig_update)
65 master.view.focus.sig_change.connect(self.sig_update)
66 master.view.sig_view_update.connect(self.sig_update)
67 master.options.subscribe(self.sig_options_update, ["console_quickhelp_visible"])
68
69 self.prompting: Callable[[str], None] | None = None
70
71 self.onekey: set[str] | None = None
72
73 def ensure_bottom_bar_is_visible(self) -> None:
74 pile: urwid.Pile = self._w # type: ignore[has-type]

Callers 1

__init__Method · 0.45

Calls 3

show_quickhelpMethod · 0.95
subscribeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected