Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taste-setup
Commits
ad7fdeac
Commit
ad7fdeac
authored
Sep 19, 2017
by
Maxime Perrotin
Browse files
Add formatted line support
parent
8cc4b082
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc/helper-scripts/taste-progress-dialog.py
View file @
ad7fdeac
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment