Skip to content
Snippets Groups Projects
Commit 9b2bca0e authored by Daniel Meißner's avatar Daniel Meißner Committed by Daniel Meißner
Browse files

gui: connected menubar and added basic about text

parent ebc2ceef
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ import re
from PyQt5 import QtCore, QtGui, QtWidgets, uic
from lib.hardware import Hardware
from lib.version import __version__
class SuGui(QtWidgets.QMainWindow):
"""
......@@ -31,6 +32,9 @@ class SuGui(QtWidgets.QMainWindow):
self.button_stop.clicked.connect(self.stop_button)
self.button_close.clicked.connect(self.close_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):
"""
......@@ -61,6 +65,17 @@ class SuGui(QtWidgets.QMainWindow):
text = device['name'] + " (" + device['id'] + ")"
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):
"""
Generate path for dump file. The default file path is defined as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment