neutompy.misc.uitools¶
-
neutompy.misc.uitools.
get_image_gui
(initialdir='', message='Select image...')[source]¶ This function opens a dialog box to select an image (TIFF or FITS) and to get its file path.
Parameters: - initialdir (str, optional) – String defining the path of the initial folder to open in the dialog box.
- message (str, optional) – String defining the dialog box title.
Returns: fname (str) – String defining the file path selected using the dialog box.
-
neutompy.misc.uitools.
save_filename_gui
(initialdir='', message='Select folder and the name of the file to save...')[source]¶ This function opens a dialog box to select a file to save and get its file path.
Parameters: - initialdir (str, optional) – String defining the path of the initial folder to open in the dialog box.
- message (str, optional) – String defining the dialog box title.
Returns: fname (str) – String defining the file path selected using the dialog box.
-
neutompy.misc.uitools.
get_folder_gui
(initialdir='', message='Select folder...')[source]¶ This function opens a dialog box to select a folder and get its file path.
Parameters: - initialdir (str, optional) – String defining the path of the initial folder to open in the dialog box.
- message (str, optional) – String defining the dialog box title.
Returns: fname (str) – String defining the folder path selected using the dialog box.
-
neutompy.misc.uitools.
get_filename_gui
(initialdir='', message='Select file...', ext=None)[source]¶ This function opens a dialog box to select a file and get its file path.
Parameters: - initialdir (str, optional) – String defining the path of the initial folder to open in the dialog box.
- message (str, optional) – String defining the dialog box title.
- ext (tuple, optional) – Tuple defining the file types to show. It includes the description and a shell-style wildcards defining the extension of the files. E.g. to filter TIFF images: ((‘Tiff iamges’, ‘*.tiff *.tif’))
Returns: fname (str) – String defining the file path selected using the dialog box.