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

Method switch

mitmproxy/tools/console/window.py:275–283  ·  view source on GitHub ↗

Switch between the two panes.

(self)

Source from the content-addressed store, hash-verified

273 self.focus_position = section
274
275 def switch(self):
276 """
277 Switch between the two panes.
278 """
279 if self.master.options.console_layout == "single":
280 self.pane = 0
281 else:
282 self.pane = (self.pane + 1) % len(self.stacks)
283 self.refresh()
284
285 def mouse_event(self, *args, **kwargs):
286 # args: (size, event, button, col, row)

Callers 2

panes_nextMethod · 0.80
mouse_eventMethod · 0.80

Calls 1

refreshMethod · 0.95

Tested by

no test coverage detected