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
9b2bca0e
Commit
9b2bca0e
authored
9 years ago
by
Daniel Meißner
Committed by
Daniel Meißner
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gui: connected menubar and added basic about text
parent
ebc2ceef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/gui/gui.py
+15
-0
15 additions, 0 deletions
lib/gui/gui.py
with
15 additions
and
0 deletions
lib/gui/gui.py
+
15
−
0
View file @
9b2bca0e
...
@@ -9,6 +9,7 @@ import re
...
@@ -9,6 +9,7 @@ import re
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
,
uic
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
,
uic
from
lib.hardware
import
Hardware
from
lib.hardware
import
Hardware
from
lib.version
import
__version__
class
SuGui
(
QtWidgets
.
QMainWindow
):
class
SuGui
(
QtWidgets
.
QMainWindow
):
"""
"""
...
@@ -31,6 +32,9 @@ class SuGui(QtWidgets.QMainWindow):
...
@@ -31,6 +32,9 @@ class SuGui(QtWidgets.QMainWindow):
self
.
button_stop
.
clicked
.
connect
(
self
.
stop_button
)
self
.
button_stop
.
clicked
.
connect
(
self
.
stop_button
)
self
.
button_close
.
clicked
.
connect
(
self
.
close_button
)
self
.
button_close
.
clicked
.
connect
(
self
.
close_button
)
self
.
button_hw_refresh
.
clicked
.
connect
(
self
.
refresh_hw_button
)
self
.
button_hw_refresh
.
clicked
.
connect
(
self
.
refresh_hw_button
)
# menubar
self
.
actionQuit
.
triggered
.
connect
(
self
.
close_button
)
self
.
actionAbout
.
triggered
.
connect
(
self
.
about_button
)
def
start_button
(
self
):
def
start_button
(
self
):
"""
"""
...
@@ -61,6 +65,17 @@ class SuGui(QtWidgets.QMainWindow):
...
@@ -61,6 +65,17 @@ class SuGui(QtWidgets.QMainWindow):
text
=
device
[
'
name
'
]
+
"
(
"
+
device
[
'
id
'
]
+
"
)
"
text
=
device
[
'
name
'
]
+
"
(
"
+
device
[
'
id
'
]
+
"
)
"
self
.
comboBox_hardware
.
addItem
(
self
.
tr
(
text
))
self
.
comboBox_hardware
.
addItem
(
self
.
tr
(
text
))
def
about_button
(
self
):
"""
Show about widget.
"""
QtWidgets
.
QMessageBox
.
about
(
self
,
\
"
About
"
,
\
"
SU - Spectrum Usage v
"
+
__version__
+
"
\n\n
"
\
"
Contact: daniel.meissner@smail.inf.h-brs.de
\n
"
\
"
Source: https://git.fslab.de/dmeiss2s/su
"
)
def
_get_default_dump_file_path
(
self
):
def
_get_default_dump_file_path
(
self
):
"""
"""
Generate path for dump file. The default file path is defined as
Generate path for dump file. The default file path is defined as
...
...
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