multimodule module

class MultiModule(label, module_list)

Bases: object

Generic class for switching between modules with a label and module_layout.

If you have several modules, for an example several tables or figures, and you want them to take up less tabs/window button spaces, you can use this module. They keep the same functionality, but can be contained inside a single module instead of taking up extra space.

Parameters:
  • label (str)

  • module_list (list[Any])

layout()

Define the layout for the MultiModule module.

Because this module can be used as a a component in other modules, it needs to have a layout method that is not abstract. For implementations as tab or window, this method should still be overridden.

Returns:

A Dash HTML Div component representing the layout of the module to be displayed directly.

Return type:

html.Div

module_callbacks()

Define the callbacks for the MultiModule module.

Return type:

None

class MultiModuleTab(label, module_list)

Bases: TabImplementation, MultiModule

MultiModule implemented as a Tab.

Parameters:
  • label (str)

  • module_list (list[Any])

class MultiModuleWindow(label, module_list)

Bases: WindowImplementation, MultiModule

MultiModule implemented as a Window.

Parameters:
  • label (str)

  • module_list (list[Any])