gather_ui_elements¶

gather_ui_elements(vstate, win_num)[source]¶

Gather all the ui elements into a dict.

Defines and gathers the main UI elements for a window, excluding any elements that have been deactivated in the config file.

Parameters:
  • vstate (ViewerState) – the ViewerState object for the window

  • win_num (int) – the window number (0 or 1)

Returns:

A tuple containing the layouts for the main and extra options tabs of the UI, and a dict containing all the UI elements for ease of acess.

Return type:

tuple[Column, Column, dict]