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

Method __init__

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

Source from the content-addressed store, hash-verified

208 keyctx = ""
209
210 def __init__(self, master: mitmproxy.tools.console.master.ConsoleMaster) -> None:
211 self.master = master
212 self.ib = urwid.WidgetWrap(urwid.Text(""))
213 self.ab = ActionBar(self.master)
214 super().__init__(urwid.Pile([self.ib, self.ab]))
215 signals.flow_change.connect(self.sig_update)
216 signals.update_settings.connect(self.sig_update)
217 master.options.changed.connect(self.sig_update)
218 master.view.focus.sig_change.connect(self.sig_update)
219 master.view.sig_view_add.connect(self.sig_update)
220 self.refresh()
221
222 def refresh(self) -> None:
223 self.redraw()

Callers

nothing calls this directly

Calls 4

refreshMethod · 0.95
ActionBarClass · 0.85
__init__Method · 0.45
connectMethod · 0.45

Tested by

no test coverage detected