NaviNIBS.Navigator.GUI.ViewPanels package

Bases: object

Parameters:
  • _key

  • _session

  • _label

  • _icon

  • _iconFn – To be set by subclass. If iconFn is set, icon will be ignored and iconFn will be called to generate the icon. This allows regenerating the icon automatically, e.g. after color palette changes.

To be set by subclass. If iconFn is set, icon will be ignored and iconFn will be called to generate the icon. This allows regenerating the icon automatically, e.g. after color palette changes.

Should return (True, None) if panel can be enabled, and (False, ‘<Reason why cannot be enabled>’) otherwise. The second output in the latter case should be a string explaining why the panel cannot be enabled, e.g. ‘Registration must be completed before navigating’

Return type:

tuple[bool, Optional[str]]

Subpackages

Submodules