Is there a way to either choose one file in a folder or multiple files in a folder or just a folder (and then process all the files inside it) with PySimpleGUI? So far I've made something like this:
import PySimpleGUI as sg
layout = [[sg.Text("Select files or folder:", sg.Input(key='-IN1-'),sg.FilesBrowse('Select')],
[sg.Button("Ok"),sg.Button("Cancel")]]
window = sg.Window("Test_window", layout)
...
But with this code I can only choose one or multiple files in a folder, and cannot choose a folder. I want a way to choose either one file, multiple files or a folder.