问题
i am trying to browse a only excel files but How to restrict the file type in PySimpleGUI browse button .
回答1:
layout = [[sg.In() ,sg.FileBrowse(file_types=(("Text Files", "*.txt"),))]]
来源:https://stackoverflow.com/questions/57443004/pysimplegui-file-browser-specific-file-type