@@ -20,9 +20,19 @@ def start_from_layers():
2020 from typing import Union
2121 hist = get_save_history ()
2222 cdir = hist [0 ]
23+
24+ def show_doc ():
25+ """ Open the online documentation """
26+ ut .show_documentation_page ( "Start-epicure#start-from-opened-layers" )
2327
24- @magicgui (call_button = "Use selected layers" ,)
25- def select_layer (movie : Union ["napari.layers.Image" , None ], movie_path : pathlib .Path , segmentation : Union ["napari.layers.Layer" , None ]):
28+ @magicgui (call_button = "Use selected layers" ,
29+ __ = {"widget_type" : "Label" },
30+ go_help = {"widget_type" : "PushButton" , "label" : "Help" },
31+ )
32+ def select_layer (movie : Union ["napari.layers.Image" , None ], movie_path : pathlib .Path ,
33+ segmentation : Union ["napari.layers.Layer" , None ],
34+ __ = "" ,
35+ go_help = False ):
2636 """ GUI to choose the layers to use """
2737 if movie == "None" :
2838 movie = None
@@ -37,7 +47,9 @@ def select_layer(movie: Union["napari.layers.Image", None], movie_path: pathlib.
3747
3848 viewer = current_viewer ()
3949 wid = viewer .window .add_dock_widget (select_layer )
50+ select_layer .go_help .clicked .connect ( show_doc )
4051 return wid
52+
4153
4254
4355def start_epicure ():
@@ -156,6 +168,10 @@ def set_chanel():
156168 show_others ()
157169 ut .show_duration (start_time , header = "Movie chanel loaded in " )
158170
171+ def show_documentation ():
172+ """ Open the online documentation """
173+ ut .show_documentation_page ( "Start-epicure" )
174+
159175 def launch_napari_epyseg ():
160176 """ Open napari-epyseg plugin to segment the intensity channel movie """
161177 print ("Running EpySeg with default parameters on the movie. To change the settings, use the napari-epyseg plugin outside of EpiCure or EpySeg module directly" )
@@ -207,6 +223,7 @@ def setup_logger( name="epyseg_seg" ):
207223 junction_half_thickness = {"widget_type" : "LiteralEvalLineEdit" },
208224 nbparallel_threads = {"widget_type" : "LiteralEvalLineEdit" },
209225 verbose_level = {"widget_type" : "Slider" , "min" :0 , "max" : 3 },
226+ go_help = {"widget_type" : "PushButton" , "label" : "Help" },
210227 )
211228 def get_files (
212229 image_file = pathlib .Path (cdir ),
@@ -219,9 +236,9 @@ def get_files(
219236 __ = "\n Segmentation\n " ,
220237 _____ = "Load segmentation or TrackMateXML file" ,
221238 segmentation_file = pathlib .Path (cdir ),
222- ______ = "OR\t " ,
239+ ______ = "OR\t \t " ,
223240 segment_with_epyseg = False ,
224- ___ = "" ,
241+ ___ = "\n " ,
225242 advanced_parameters = False ,
226243 show_other_chanels = True ,
227244 show_scale_bar = True ,
@@ -232,6 +249,7 @@ def get_files(
232249 junction_half_thickness = 1 ,
233250 output_dirname = "epics" ,
234251 verbose_level = 1 ,
252+ go_help = False ,
235253 ):
236254
237255 print ("Starting" )
@@ -276,5 +294,6 @@ def get_files(
276294 get_files .image_file .changed .connect (load_movie )
277295 get_files .junction_chanel .changed .connect (set_chanel )
278296 get_files .segment_with_epyseg .clicked .connect ( launch_napari_epyseg )
297+ get_files .go_help .clicked .connect ( show_documentation )
279298 return get_files , Epic
280299
0 commit comments