Sort the list of entries
This commit is contained in:
parent
44c020324a
commit
e4125886a3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue