def open_file(self):
name=QFileDialog.getOpenFileName(self, 'Open File')
file=open(name, 'rb', encoding= 'utf8')
self.editor()
with file:
text=file.read()
self.textEdit.setText(text)
expected str, bytes or os.PathLike object, not tuple i got this error when i opened an image.