napari_track_edit.application_menus.welcome_widget
Attributes
Classes
Getting started widget with links and basic information to get started with the tool. |
Module Contents
- napari_track_edit.application_menus.welcome_widget.DOCS_URL = 'https://liveimagetrackingtools.org/napari-track-edit'
- napari_track_edit.application_menus.welcome_widget.KEYBINDINGS_URL = 'https://liveimagetrackingtools.org/napari-track-edit/key_bindings.html'
- napari_track_edit.application_menus.welcome_widget.TUTORIAL_URL = 'https://liveimagetrackingtools.org/napari-track-edit/napari-track-edit_tutorial.html'
- napari_track_edit.application_menus.welcome_widget.EXAMPLE_SCHEME = 'load-example'
- napari_track_edit.application_menus.welcome_widget.LOGO_PATH
- napari_track_edit.application_menus.welcome_widget.LOGO_HEIGHT = 58
- class napari_track_edit.application_menus.welcome_widget.WelcomeWidget(viewer: napari.Viewer)
Bases:
qtpy.QtWidgets.QWidgetGetting started widget with links and basic information to get started with the tool.
- viewer
- _logo_label() → qtpy.QtWidgets.QLabel
A label showing the plugin logo, scaled to LOGO_HEIGHT and kept sharp on high-dpi screens.
- _on_link_clicked(url: qtpy.QtCore.QUrl) → None
Open documentation links in a browser, load examples in the app.
- _load_example(sample_name: str) → None
Load one of the sample tracks and its raw data, downloading them first if needed.
The TracksViewer is looked up on click rather than on construction, so the widget does not depend on the order in which the menus are created.
- Parameters:
sample_name (str) – A key of SAMPLE_TRACKS
- _confirm_raw_download(sample_name: str) → bool
Ask before fetching the raw data for the first time, because it is a few hundred megabytes and can take minutes on a slow connection.
- Parameters:
sample_name (str) – A key of SAMPLE_TRACKS
- Returns:
True if the example should be loaded
- Return type:
bool
- _add_raw_layer(sample_name: str) → bool
Add the raw data belonging to a sample to the viewer, downloading it first if needed. Skipped if a layer with that name is already present. Added before the tracks, so that the tracks layers are drawn on top.
- Parameters:
sample_name (str) – A key of SAMPLE_TRACKS
- Returns:
False if the user cancelled the download, or it failed
- Return type:
bool