open_viewmin.filter_tree_plot_Qt.menus.main_menus.add_menu#
Functions#
|
Update the dataset names to be listed in a menu. |
|
Define callbacks to connect to actions in "Add" main menu |
Module Contents#
- _add_fields_filter_menu_update(plotter, menu, callfunc, list_before=None, field_names_source=None)#
Update the dataset names to be listed in a menu.
- Parameters:
plotter (
FilterTreePlotQt
)menu (PyQt5.QtWidgets.QMenu)
callfunc (callable()) – Function mapping data array name to a menu action
list_before (list[tuple]) – (name, callable) pairs of menu items to list before the dataset names.
field_names_source (callable()) – Function that returns a sequence of data array names.
- setup_add_menu(plotter)#
Define callbacks to connect to actions in “Add” main menu
- Parameters:
plotter (
FilterTreePlotQt
)