qfiledialog

PyQt5: keep selection order with QFileDialog.getOpenFileNames

PyQt5: keep selection order with QFileDialog.getOpenFileNames Question: 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, …

Total answers: 1

Error "bool object has no attribute" python message

Error "bool object has no attribute" python message Question: I have a getFile function which will get the address of the csv file and print the filename in the command console. When I run the function in the main window, I keep getting "’bool’ object has no attribute ‘filename’". Why is this happening? ttreadfile.py from …

Total answers: 1

Qt5 application not terminating on QMainWindow.close() after opening QFileDialog

Qt5 application not terminating on QMainWindow.close() after opening QFileDialog Question: I have a not very sophisticated but also not trivial Qt5 python application (the full thing is here: https://gitlab.com/rulrich/pydatagrab but see below for a minimal example) My question is the following: I have a QMainWindow where in the constructor I do many things, but also: …

Total answers: 1