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. |
- __init__(*args, **kwargs)
Initialise a Tree.
- Parameters:
label – The label of the root node of the tree.
data – The optional data to associate with the root node of the tree.
name – The name of the Tree.
id – The ID of the tree in the DOM.
classes – The CSS classes of the tree.
disabled – Whether the tree is disabled or not.
args (
Any)kwargs (
Any)
- can_focus = True
Widget may receive focus.
- can_focus_children = True
Widget’s children may receive focus.