Govinda Raju
Govinda Raju

Reputation: 411

PySimpleGUI file browser specific file type

i am trying to browse a only excel files but How to restrict the file type in PySimpleGUI browse button .

Upvotes: 12

Views: 17839

Answers (1)

Govinda Raju
Govinda Raju

Reputation: 411

layout =  [[sg.In() ,sg.FileBrowse(file_types=(("Text Files", "*.txt"),))]]

Upvotes: 16

Related Questions