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

Method top_widget

mitmproxy/tools/console/window.py:92–98  ·  view source on GitHub ↗

The current top widget - either a window or the active overlay.

(self)

Source from the content-addressed store, hash-verified

90 return self.windows[self.stack[-1]]
91
92 def top_widget(self):
93 """
94 The current top widget - either a window or the active overlay.
95 """
96 if self.overlay:
97 return self.overlay
98 return self.top_window()
99
100 def push(self, wname):
101 if self.stack[-1] == wname:

Callers 5

set_overlayMethod · 0.95
show_quickhelpMethod · 0.80
wrappedMethod · 0.80
currentMethod · 0.80
keypressMethod · 0.80

Calls 1

top_windowMethod · 0.95

Tested by

no test coverage detected