Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
taste-setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
taste-setup
Commits
ad7fdeac
Commit
ad7fdeac
authored
Sep 19, 2017
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add formatted line support
parent
8cc4b082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
misc/helper-scripts/taste-progress-dialog.py
misc/helper-scripts/taste-progress-dialog.py
+9
-5
No files found.
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
Markdown
is supported
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