sshmitm.moduleparser.pluginbrowser.widgets module

Reusable Textual widgets for the SSH-MITM plugin browser.

class sshmitm.moduleparser.pluginbrowser.widgets.PluginTree(*args, **kwargs)

Bases: Tree[Any]

Navigation tree with keyboard bindings for the plugin browser.

Parameters:
  • args (Any)

  • kwargs (Any)

BINDINGS = [Binding(key='enter', action='select_cursor', description='Show Info', show=True, key_display=None, priority=False, tooltip='', id=None, system=False, group=None), Binding(key='space', action='toggle_node', description='Expand/Collapse', show=True, key_display=None, priority=False, tooltip='', id=None, system=False, group=None)]
Key(s) | Description |
:- | :- |
enter | Select the current item. |
space | Toggle the expand/collapsed state of the current item. |
up | Move the cursor up. |
down | Move the cursor down. |
can_focus = True

Widget may receive focus.

can_focus_children = True

Widget’s children may receive focus.