Clear fileter, find fields

This commit is contained in:
PySimpleGUI 2021-01-27 11:57:36 -05:00
parent 0a1f515937
commit 6366e1f0ed
1 changed files with 2 additions and 0 deletions

View File

@ -189,11 +189,13 @@ def main():
window['-DEMO LIST-'].update(new_list)
window['-FILTER NUMBER-'].update(f'{len(new_list)} files')
window['-FIND NUMBER-'].update('')
window['-FIND-'].update('')
elif event == '-FIND-':
file_list = find_in_file(values['-FIND-'])
window['-DEMO LIST-'].update(sorted(file_list))
window['-FIND NUMBER-'].update(f'{len(file_list)} files')
window['-FILTER NUMBER-'].update('')
window['-FILTER-'].update('')
elif event == 'Settings':
if settings_window() is True:
window.close()