changed select_submits to change_submits

This commit is contained in:
MikeTheWatchGuy 2018-09-04 14:07:42 -04:00
parent 16b1c8310d
commit 4697d051bf
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ file_num_display_elem = sg.Text('File 1 of {}'.format(num_files), size=(15,1))
col = [[filename_display_elem], col = [[filename_display_elem],
[image_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', [sg.ReadFormButton('Next', size=(8,2)), sg.ReadFormButton('Prev',
size=(8,2)), file_num_display_elem]] size=(8,2)), file_num_display_elem]]
@ -111,3 +111,5 @@ while True:
filename_display_elem.Update(filename) filename_display_elem.Update(filename)
# update page display # update page display
file_num_display_elem.Update('File {} of {}'.format(i+1, num_files)) file_num_display_elem.Update('File {} of {}'.format(i+1, num_files))