Sort the list of entries

This commit is contained in:
PySimpleGUI 2021-07-03 14:29:14 -04:00
parent 44c020324a
commit e4125886a3
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ import PySimpleGUI as sg
layout = [[sg.Combo(sg.user_settings_get_entry('-filenames-', []), default_value=sg.user_settings_get_entry('-last filename-', ''), size=(50, 1), key='-FILENAME-'), sg.FileBrowse(), sg.B('Clear History')],
layout = [[sg.Combo(sorted(sg.user_settings_get_entry('-filenames-', [])), default_value=sg.user_settings_get_entry('-last filename-', ''), size=(50, 1), key='-FILENAME-'), sg.FileBrowse(), sg.B('Clear History')],
[sg.Button('Ok'), sg.Button('Cancel')]]
window = sg.Window('Filename Chooser With History', layout)