From e04ddde0fe89b8df6667491710ba565506a6e0c8 Mon Sep 17 00:00:00 2001 From: Andreas M Arnold Date: Wed, 14 Feb 2024 21:23:56 -0500 Subject: [PATCH] Add txt file filter for saving output file (#90) Closes #89, preventing images from being overwritten by the affine parameters, by: - changing the label of the file selection box to make it clearer that it's for saving affine parameters, and - adding a file filter to the file selection widget, so it only shows .txt files. --- src/affinder/affinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/affinder/affinder.py b/src/affinder/affinder.py index 798e07a..4da9bb5 100644 --- a/src/affinder/affinder.py +++ b/src/affinder/affinder.py @@ -129,7 +129,7 @@ def _on_affinder_main_init(widget): widget_init=_on_affinder_main_init, call_button='Start', layout='vertical', - output={'mode': 'w'}, + output={'mode': 'w', 'label': 'Save transformation as', 'filter': '*.txt'}, viewer={'visible': False, 'label': ' '}, delete_pts={ 'label':