From aee9a91fd3296d0d94918d0103309e51a5cc53f4 Mon Sep 17 00:00:00 2001
From: Luc Papeleux <L.Papeleux@ULiege.be>
Date: Mon, 6 Jul 2020 19:25:07 +0200
Subject: [PATCH] py3 port of launchGui

---
 launchGui.pyw | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/launchGui.pyw b/launchGui.pyw
index ba06f61..fe29410 100755
--- a/launchGui.pyw
+++ b/launchGui.pyw
@@ -329,14 +329,14 @@ class LaunchGui(QWidget):
         
     #@pyqtSlot()
     def readStdOutput(self): 
-        out = self.process.readAllStandardOutput()       
-        print ("out = ", out)
-        print ("type out = ", type(out)) 
-        out = str(out)#.encode('utf8')  
+        out = self.process.readAllStandardOutput()   
+        out = bytes(out.data())
+        out = out.decode()        
         out = out.replace('>>> >>> ... ... ... ... ... >>>','')        
         out = out.replace('>>> ','')
         out = out.replace('\r\n','\n')
-        self.write(out.encode('utf-8'))
+        
+        self.write(out)
         #self.console.append(QString(out))
         '''
         self.console.moveCursor (QTextCursor.End)
-- 
GitLab