From b37f85ff50d6e6ed6329f794350bb29ddb934e17 Mon Sep 17 00:00:00 2001 From: jacques Grelet <Jacques.Grelet@ird.fr> Date: Sun, 17 Mar 2019 15:55:39 +0000 Subject: [PATCH] add file_types=(("cnv files", "*.cnv"),) --- oceano.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oceano.py b/oceano.py index 0dffaec..866c3c1 100644 --- a/oceano.py +++ b/oceano.py @@ -36,7 +36,8 @@ if args.debug: if len(sys.argv) == 1: # define GUI layout layout = ([[sg.Text('File(s) to read and convert')], - [sg.Input(size=(40, 1)), sg.FileBrowse()], + [sg.Input(size=(40, .8)), sg.FileBrowse( + file_types=(("cnv files", "*.cnv"),))], [sg.Checkbox('PRES'), sg.Checkbox('TEMP'), sg.Checkbox('PSAL')], [sg.CloseButton('Run'), sg.CloseButton('Cancel')]]) -- GitLab