Hi there,
So I was making a test gui (PyQt5) that could read text from a command and then show it on the gui.
However, for some reason, it keeps showing this random b", \n and \r:
I have tried using the readLine().decode('utf-8'), but everytime i do that it crashes. Plus, when i implement a new command to run, that command will continue to run and I want to show all of it.
So my question is: Is there a way to get rid of all the b', \n and \r in the readAll function.
My code:
Thanks,
salm2s
So I was making a test gui (PyQt5) that could read text from a command and then show it on the gui.
However, for some reason, it keeps showing this random b", \n and \r:
I have tried using the readLine().decode('utf-8'), but everytime i do that it crashes. Plus, when i implement a new command to run, that command will continue to run and I want to show all of it.
So my question is: Is there a way to get rid of all the b', \n and \r in the readAll function.
My code:
Code:
output = self.process.readAll()
self.plainTextEdit.setPlainText(str(output))
Thanks,
salm2s