def openFile_02(self):
fname = QFileDialog.getOpenFileNames(self,'open file','.')
if fname[0]:
f = open(fname[0],'r')
with f:
data = f.read()
self.textEdit.setText(data)
Traceback (most recent call last):
File "Data_ini.py", line 152, in openFile_02
f = open(fname[0],'r')
TypeError: expected str, bytes or os.PathLike object, not list