diff --git a/audio_player.py b/audio_player.py
index 37ced60..927fef3 100644
--- a/audio_player.py
+++ b/audio_player.py
@@ -75,7 +75,7 @@ class AudioPlayer(object):
def set_audio_player(self, fname = ""):
self.__first_call = True
self.__reset_audio_widget()
- full_name = os.path.join('Data', 'Audio', fname + '.wav')
+ full_name = os.path.join('Data', 'Audio_ogg', fname + '.ogg')
if os.path.exists(full_name):
self.__play.setEnabled(True)
self.__audio_file = full_name
@@ -84,7 +84,7 @@ class AudioPlayer(object):
if not self.__paused:
if self.__first_call:
self.__first_call = False
- mixer.init(frequency = AudioSegment.from_wav(self.__audio_file).frame_rate,
+ mixer.init(frequency = AudioSegment.from_ogg(self.__audio_file).frame_rate,
buffer = 2048)
mixer.music.load(self.__audio_file)
self.__set_volume()
diff --git a/main.py b/main.py
index ec25f9a..e490d87 100644
--- a/main.py
+++ b/main.py
@@ -10,7 +10,7 @@ from PyQt5.QtWidgets import (QMainWindow,
qApp,)
from PyQt5.QtGui import QPixmap
from PyQt5 import uic
-from PyQt5.QtCore import QFileInfo, QSize
+from PyQt5.QtCore import QFileInfo, QSize, Qt
from audio_player import AudioPlayer
@@ -169,7 +169,8 @@ class MyApp(QMainWindow, Ui_MainWindow):
+ "\n" + ' '.join(words[words_per_row:])
else:
words = self.current_signal_name
- self.name_lab.setText(words)
+ self.name_lab.setText(self.current_signal_name)
+ self.name_lab.setAlignment(Qt.AlignHCenter)
current_signal = self.db.loc[self.current_signal_name]
self.url_button.setEnabled(True)
if not current_signal.at["url_clicked"]:
diff --git a/main_window.ui b/main_window.ui
index ff0914d..f0cd354 100644
--- a/main_window.ui
+++ b/main_window.ui
@@ -6,8 +6,8 @@
0
0
- 1337
- 641
+ 1327
+ 638
@@ -124,6 +124,12 @@ QMessageBox {
QToolTip {
color: #000000;
+}
+
+QTextBrowser {
+ background-color: #464646;
+ color: #ffffff;
+ border: 0px;
}
@@ -330,900 +336,888 @@ QTabBar::tab:!selected {
Main
-
- -
-
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Name
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
- false
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Frequency
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Bandwidth
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Mode
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Modulation
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Location
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- ACF
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 12
-
-
-
- N/A
-
-
-
-
-
-
- -
-
+
+
-
+
-
+
0
0
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
-
-
-
- Categories
-
-
- Qt::AlignBottom|Qt::AlignHCenter
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Military
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Radar
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Active
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Inactive
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- HAM
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Commercial
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Aviation
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Marine
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Analogue
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Digital
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Trunked
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Utility
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Sat
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Navigation
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Interfering
-
-
- Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Time Signal
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 10
- 75
- true
-
-
-
- color: #9f9f9f;
-
-
- Number Stations
-
-
- Qt::AlignCenter
-
-
-
-
-
-
- -
-
-
-
- 0
- 0
-
+
+
+ 20
+ 75
+ true
+
+
+
+ QFrame::NoFrame
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:20pt; font-weight:600; font-style:normal;">
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:15pt;"><br /></p>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:15pt;"><br /></p></body></html>
-
-
-
-
-
- false
-
-
-
- 0
- 0
-
-
-
-
- 12
- 75
- true
- true
-
-
-
- <html><head/><body><p><span style=" color:#000000;">Go to the signal's wiki.</span></p></body></html>
-
-
- color: #9f9f9f;
-
-
- Signal's wiki
-
-
- true
-
-
-
-
- -
+
-
+
+
-
+
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+
+
+
+ N/A
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+
+
+
+ N/A
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ Mode
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+
+
+
+ N/A
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+
+
+
+ N/A
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ Frequency
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+
+
+
+ N/A
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ Modulation
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ Location
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+
+
+
+ N/A
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ Bandwidth
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ ACF
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+
+
+
+ Categories
+
+
+ Qt::AlignBottom|Qt::AlignHCenter
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Military
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Radar
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Active
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Inactive
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ HAM
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Commercial
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Aviation
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Marine
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Analogue
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Digital
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Trunked
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Utility
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Sat
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Navigation
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Interfering
+
+
+ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Time Signal
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
+ 10
+ 75
+ true
+
+
+
+ color: #9f9f9f;
+
+
+ Number Stations
+
+
+ Qt::AlignCenter
+
+
+
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+
-
+
+
+ false
+
+
+
+ 0
+ 0
+
+
+
+
+ 12
+ 75
+ true
+ true
+
+
+
+ <html><head/><body><p><span style=" color:#000000;">Go to the signal's wiki.</span></p></body></html>
+
+
+ color: #9f9f9f;
+
+
+ Signal's wiki
+
+
+ true
+
+
+
+
+
+
+
+
+ -
@@ -1246,7 +1240,29 @@ QTabBar::tab:!selected {
- -
+
-
+
+
+
+ 11
+
+
+
+ border: 0px;
+/*border-radius: 8px;*/
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ Qt::ScrollBarAsNeeded
+
+
+ true
+
+
+
+ -
Frequency bands
@@ -1884,28 +1900,6 @@ QTabBar::tab:!selected {
- -
-
-
-
- 11
-
-
-
- border: 0px;
-/*border-radius: 8px;*/
-
-
- Qt::ScrollBarAsNeeded
-
-
- Qt::ScrollBarAsNeeded
-
-
- true
-
-
-
@@ -1926,7 +1920,7 @@ QTabBar::tab:!selected {
- 300
+ 310
0
@@ -2026,8 +2020,8 @@ QPushButton:disabled {
- 60
- 60
+ 70
+ 70
@@ -2051,8 +2045,8 @@ QPushButton:disabled {
- 60
- 60
+ 70
+ 70
@@ -2076,8 +2070,8 @@ QPushButton:disabled {
- 60
- 60
+ 70
+ 70
@@ -2195,7 +2189,7 @@ QSlider::handle:horizontal {
0
0
- 1337
+ 1327
21