sshmitm.moduleparser.pluginbrowser.detail module

DetailPane widget for the SSH-MITM plugin browser.

class sshmitm.moduleparser.pluginbrowser.detail.DetailPane(*args, resolver=None, **kwargs)

Bases: Widget

Right-hand detail pane showing plugin or group information.

Parameters:
  • args (Any)

  • resolver (Callable[[Any], str] | None, default: None)

  • kwargs (Any)

__init__(*args, resolver=None, **kwargs)

Initialize a Widget.

Parameters:
  • *children – Child widgets.

  • name – The name of the widget.

  • id – The ID of the widget in the DOM.

  • classes – The CSS classes for the widget.

  • disabled – Whether the widget is disabled or not.

  • markup – Enable content markup?

  • args (Any)

  • resolver (Callable[[Any], str] | None, default: None)

  • kwargs (Any)

adjust_split(delta)
Parameters:

delta (int)

Return type:

None

can_focus = False

Widget may receive focus.

can_focus_children = True

Widget’s children may receive focus.

compose()

Build the detail pane layout.

Return type:

Iterable[Widget]

on_mount()
Return type:

None

async on_tree_node_selected(event)
Parameters:

event (NodeSelected[Any])

Return type:

None

async show(plugin, default_cfg, user_cfg, config_path)
Parameters:
  • plugin (PluginInfo)

  • default_cfg (ConfigParser)

  • user_cfg (ConfigParser | None)

  • config_path (str | None)

Return type:

None

async show_exec_handler(info, default_cfg, user_cfg, config_path)
Parameters:
  • info (ExecHandlerInfo)

  • default_cfg (ConfigParser)

  • user_cfg (ConfigParser | None)

  • config_path (str | None)

Return type:

None

async show_general_action(action_info, default_cfg, user_cfg, config_path)
Parameters:
  • action_info (GeneralActionInfo)

  • default_cfg (ConfigParser)

  • user_cfg (ConfigParser | None)

  • config_path (str | None)

Return type:

None

async show_general_group(group_info, default_cfg, user_cfg, config_path)
Parameters:
  • group_info (GeneralGroupInfo)

  • default_cfg (ConfigParser)

  • user_cfg (ConfigParser | None)

  • config_path (str | None)

Return type:

None

async show_plugin_type(type_info)
Parameters:

type_info (PluginTypeInfo)

Return type:

None

watch__top_lines(value)
Parameters:

value (int)

Return type:

None