Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
su
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dmeiss2s
su
Commits
76a1b0d0
Commit
76a1b0d0
authored
9 years ago
by
Daniel Meißner
Committed by
Daniel Meißner
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gui: added progress bar
parent
2de6ec84
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/gui/gui.py
+5
-0
5 additions, 0 deletions
lib/gui/gui.py
lib/gui/su_mainwindow.ui
+13
-0
13 additions, 0 deletions
lib/gui/su_mainwindow.ui
with
18 additions
and
0 deletions
lib/gui/gui.py
+
5
−
0
View file @
76a1b0d0
...
...
@@ -32,6 +32,7 @@ class SuGui(QtWidgets.QMainWindow):
self
.
_set_default_dump_file_path
()
self
.
lineEdit_dump_file
.
setCursorPosition
(
0
)
self
.
refresh_hw_button
()
self
.
button_stop
.
setEnabled
(
False
)
# button events
self
.
button_start
.
clicked
.
connect
(
self
.
start_button
)
self
.
button_stop
.
clicked
.
connect
(
self
.
stop_button
)
...
...
@@ -67,6 +68,8 @@ class SuGui(QtWidgets.QMainWindow):
# labels
self
.
_update_status_label
()
self
.
label_file_overwrite
.
setText
(
"
change path
"
)
# progress_bar
self
.
progressBar
.
setValue
(
0
)
def
start_button
(
self
):
"""
...
...
@@ -81,6 +84,8 @@ class SuGui(QtWidgets.QMainWindow):
options
[
'
capture_time
'
],
options
[
'
device
'
]
)
self
.
button_stop
.
setEnabled
(
True
)
self
.
button_start
.
setEnabled
(
False
)
file_sink
.
capture
()
...
...
This diff is collapsed.
Click to expand it.
lib/gui/su_mainwindow.ui
+
13
−
0
View file @
76a1b0d0
...
...
@@ -380,6 +380,19 @@
</property>
</widget>
</widget>
<widget
class=
"QProgressBar"
name=
"progressBar"
>
<property
name=
"geometry"
>
<rect>
<x>
410
</x>
<y>
2
</y>
<width>
141
</width>
<height>
21
</height>
</rect>
</property>
<property
name=
"value"
>
<number>
0
</number>
</property>
</widget>
</widget>
<widget
class=
"QMenuBar"
name=
"menubar"
>
<property
name=
"geometry"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment