MCPcopy
hub / github.com/mitmproxy/mitmproxy / call

Method call

mitmproxy/tools/console/window.py:119–127  ·  view source on GitHub ↗

Call a function on both the top window, and the overlay if there is one. If the widget has a key_responder, we call the function on the responder instead.

(self, name, *args, **kwargs)

Source from the content-addressed store, hash-verified

117 self.stack.pop()
118
119 def call(self, name, *args, **kwargs):
120 """
121 Call a function on both the top window, and the overlay if there is
122 one. If the widget has a key_responder, we call the function on the
123 responder instead.
124 """
125 getattr(self.top_window(), name)(*args, **kwargs)
126 if self.overlay:
127 getattr(self.overlay, name)(*args, **kwargs)
128
129
130class Window(urwid.Frame):

Callers 15

pushMethod · 0.95
popMethod · 0.95
execute_commandMethod · 0.45
get_statusMethod · 0.45
edit_focus_optionsMethod · 0.45
spawn_editorMethod · 0.45
spawn_external_viewerMethod · 0.45
view_message_streamMethod · 0.45
conn_textMethod · 0.45
focus_changedMethod · 0.45
view_changedMethod · 0.45

Calls 1

top_windowMethod · 0.95

Tested by

no test coverage detected