I'm using PyQt5 and attempting to create a dialog that allows the user to select one or more files.

The following code functions but allows the user to select only a single file:

fname, _= QFileDialog.getOpenFileName(parent=self, directory=folder, caption='Select a file')

If I try to use `getOpenFileNames` instead of `getOpenFileName`, the interpreter crashes. Please advise.