我试图浏览只有Excel文件,但如何在PySimpleGUI浏览按钮中限制文件类型。
layout = [[sg.In() ,sg.FileBrowse(file_types=(("Text Files", "*.txt"),))]]