i am trying to browse a only excel files but How to restrict the file type in PySimpleGUI browse button .
Asked
Active
Viewed 1.6k times
1 Answers
15
layout = [[sg.In() ,sg.FileBrowse(file_types=(("Text Files", "*.txt"),))]]

sushanth
- 8,275
- 3
- 17
- 28

Govinda Raju
- 391
- 1
- 4
- 16
-
3Glad you found it. The documentation is located at http://www.PySimpleGUI.org and discusses this `file_types` parameter as well as WARNING that this parameter will not work on the Mac platform (for the tkinter version of PySimpleGUI). – Mike from PSG Aug 10 '19 at 18:59
-
Saving you a click with a direct link to their documentation: https://www.pysimplegui.org/en/latest/call%20reference/ – Matt Popovich Oct 27 '22 at 19:13