From 4697d051bf6ea8ec3e16a9d54be7545bb7952172 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Tue, 4 Sep 2018 14:07:42 -0400 Subject: [PATCH] changed select_submits to change_submits --- Demo_Img_Viewer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Demo_Img_Viewer.py b/Demo_Img_Viewer.py index ba243fab..df075f69 100644 --- a/Demo_Img_Viewer.py +++ b/Demo_Img_Viewer.py @@ -71,7 +71,7 @@ file_num_display_elem = sg.Text('File 1 of {}'.format(num_files), size=(15,1)) col = [[filename_display_elem], [image_elem]] -col_files = [[sg.Listbox(values = fnames, select_submits=True, size=(60,30), key='listbox')], +col_files = [[sg.Listbox(values = fnames, change_submits=True, size=(60, 30), key='listbox')], [sg.ReadFormButton('Next', size=(8,2)), sg.ReadFormButton('Prev', size=(8,2)), file_num_display_elem]] @@ -111,3 +111,5 @@ while True: filename_display_elem.Update(filename) # update page display file_num_display_elem.Update('File {} of {}'.format(i+1, num_files)) + +