napari_track_edit._nte_app

Classes

MenuWidgetConfig

A menu widget's class and which side of the viewer it docks to.

NTEAppConfig

How this app instance is currently set up: whether orthogonal views and

NTEApp

The running napari-track-edit application state for one napari Viewer.

Module Contents

class napari_track_edit._nte_app.MenuWidgetConfig

Bases: TypedDict

A menu widget’s class and which side of the viewer it docks to.

widget: type[qtpy.QtWidgets.QWidget]
location: Literal['left', 'right', 'top', 'bottom']
class napari_track_edit._nte_app.NTEAppConfig

How this app instance is currently set up: whether orthogonal views and the canvas text overlay are on.

Will likely become an evented model like napari.settings for serialization

orthoviews_enabled: bool = False
text_overlay_visible: bool = True
class napari_track_edit._nte_app.NTEApp(viewer: napari.Viewer)

The running napari-track-edit application state for one napari Viewer.

classmethod get_instance(viewer: napari.Viewer | None = None) → NTEApp
viewer
_menu_manager: napari_track_edit.application_menus.menu_manager.MenuManager | None = None
_ortho_views: napari_track_edit.data_views.views.ortho_views.OrthoViewsController | None = None
config
_shortcuts: list[qtpy.QtGui.QShortcut] = []
_bind_app_keymap() → None

Bind every “app”-targeted KEYBINDINGS action as a Qt.WindowShortcut, so it fires no matter which widget in this viewer’s window has focus - unlike “tracks_viewer”/”tree_widget” actions, which only fire on the specific layer/widget they are bound to. Window (not application) scope keeps a second viewer’s shortcut from stealing the key.

property tracks_viewer: napari_track_edit.data_views.views_coordinator.tracks_viewer.TracksViewer
property tracks_list: napari_track_edit.data_views.views_coordinator.tracks_list.TracksList

The TracksList holding every Tracks object loaded into this viewer, independent of which one (if any) is currently displayed.

property menu_manager: napari_track_edit.application_menus.menu_manager.MenuManager

The MenuManager for this viewer, created on first access.

property ortho_views: napari_track_edit.data_views.views.ortho_views.OrthoViewsController

The OrthoViewsController for this viewer, created on first access.

Created on demand, independent of which menu widgets happen to be open: this only needs the viewer’s Qt window to exist (not any layers), so nothing requires waiting for VisualizationWidget.

property text_overlay_visible: bool
hide_panels() → None

Show/hide menu and tree view panels without destroying them.