MCPcopy
hub / github.com/mitmproxy/mitmproxy / widget

Method widget

mitmproxy/tools/console/options.py:231–233  ·  view source on GitHub ↗
(self, txt)

Source from the content-addressed store, hash-verified

229 self.header = urwid.AttrMap(h, style)
230
231 def widget(self, txt):
232 cols, _ = self.master.ui.get_cols_rows()
233 return urwid.ListBox([urwid.Text(i) for i in textwrap.wrap(txt, cols)])
234
235 def update_help_text(self, txt: str) -> None:
236 self.body = self.widget(txt)

Callers 2

__init__Method · 0.95
update_help_textMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected