napari_track_edit._nte_app ========================== .. py:module:: napari_track_edit._nte_app Classes ------- .. autoapisummary:: napari_track_edit._nte_app.MenuWidgetConfig napari_track_edit._nte_app.NTEAppConfig napari_track_edit._nte_app.NTEApp Module Contents --------------- .. py:class:: MenuWidgetConfig Bases: :py:obj:`TypedDict` A menu widget's class and which side of the viewer it docks to. .. py:attribute:: widget :type: type[qtpy.QtWidgets.QWidget] .. py:attribute:: location :type: Literal['left', 'right', 'top', 'bottom'] .. py:class:: 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 .. py:attribute:: orthoviews_enabled :type: bool :value: False .. py:attribute:: text_overlay_visible :type: bool :value: True .. py:class:: NTEApp(viewer: napari.Viewer) The running napari-track-edit application state for one napari Viewer. .. py:method:: get_instance(viewer: napari.Viewer | None = None) -> NTEApp :classmethod: .. py:attribute:: viewer .. py:attribute:: _menu_manager :type: napari_track_edit.application_menus.menu_manager.MenuManager | None :value: None .. py:attribute:: _ortho_views :type: napari_track_edit.data_views.views.ortho_views.OrthoViewsController | None :value: None .. py:attribute:: config .. py:attribute:: _shortcuts :type: list[qtpy.QtGui.QShortcut] :value: [] .. py:method:: _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. .. py:property:: tracks_viewer :type: napari_track_edit.data_views.views_coordinator.tracks_viewer.TracksViewer .. py:property:: tracks_list :type: 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. .. py:property:: menu_manager :type: napari_track_edit.application_menus.menu_manager.MenuManager The MenuManager for this viewer, created on first access. .. py:property:: ortho_views :type: 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. .. py:property:: text_overlay_visible :type: bool .. py:method:: hide_panels() -> None Show/hide menu and tree view panels without destroying them.