I am writing a GUI where the user is asked to select multiple files to open. For this purpose I use QFileDialog. I need to keep track of the order in which the user selected the files, is it possible?
I have the following:
filepath, _ = QFileDialog.getOpenFileNames(self, "Open File", "", "CSV Files(*.csv);;All Files (*)")
but the filepath contains the paths of the files, ordered as I found them in the folder, and not depending on the selction order. I know that I can ask the user to select a single file at a time, but with many files to open, it becomes cumbersome for the user.