spark.graph_editor.models.graph_menu_tree#
Classes#
A manager class for NodeGraphMenu's that allows for easy, hierarchical creation and access of submenus. |
Module Contents#
- class spark.graph_editor.models.graph_menu_tree.HierarchicalMenuTree(graph_menu)[source]#
A manager class for NodeGraphMenu’s that allows for easy, hierarchical creation and access of submenus.
- Init:
graph_menu: NodeGraphMenu, base NodeGraphMenu menu of the NodeGraphQt object
- Parameters:
graph_menu (NodeGraphQt.NodeGraphMenu)
- children: dict[str, HierarchicalMenuTree][source]#
- __getitem__(path)[source]#
Get / Create a submenu with the given name.
- Input:
path: str | list[str], path of the requested submenu
- Output:
HierarchicalMenuTree, requested submenu
- Parameters:
- Return type: