Commit ad7fdeac authored by Maxime Perrotin's avatar Maxime Perrotin

Add formatted line support

parent 8cc4b082
......@@ -29,11 +29,15 @@ class MyThread(QThread, QObject):
self.quit.emit()
return
else:
self.signal.emit(line)
self.progress.emit(value)
value += 10
if value == 100:
value = 0
try:
split = line.split()
possible_val = split[0]
value = int(possible_val)
text = ' '.join(split[1:])
self.progress.emit(value)
except (ValueError, IndexError):
text = line
self.signal.emit(text)
time.sleep(0.1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment