Skip to content

Commit

Permalink
Add txt file filter for saving output file (#90)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andreasmarnold authored Feb 15, 2024
1 parent 6cb4d95 commit e04ddde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/affinder/affinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit e04ddde

Please sign in to comment.