QtWidgets.QFileDialog.getOpenFileName returns a Tuple
After looking through a repository that was being updated to Qt5 as well; I found they used a line like this. filename, _filter = QtWidgets.QFileDialog.getOpenFileName(None, “Open ” + key + ” Data File”, ‘.’, “(*.csv)”) filename is a string and the (*.csv) gets discarded in the _filter variable