aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-09 13:58:40 +0100
committerNao Pross <np@0hm.ch>2021-12-09 13:58:40 +0100
commitc0af5f4f056873bca8bf560d45f329fd336811c1 (patch)
tree0bde718ff3b235ef116fde48b63df2633255658a /tests
parentTypos and begin writing "Quantifying Dispersion" (diff)
parentFIR Filter Statistical model weiter implementiert (diff)
downloadFading-c0af5f4f056873bca8bf560d45f329fd336811c1.tar.gz
Fading-c0af5f4f056873bca8bf560d45f329fd336811c1.zip
Merge branch 'master' of github.com:NaoPross/Fading
Diffstat (limited to '')
-rwxr-xr-xtests/correlator/correlator.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/correlator/correlator.py b/tests/correlator/correlator.py
index fddf8ea..d9dedb2 100755
--- a/tests/correlator/correlator.py
+++ b/tests/correlator/correlator.py
@@ -7,7 +7,7 @@
# GNU Radio Python Flow Graph
# Title: Correlator Test
# Author: Naoki Pross
-# GNU Radio version: 3.8.1.0
+# GNU Radio version: 3.8.2.0
from distutils.version import StrictVersion
@@ -37,6 +37,7 @@ from gnuradio import eng_notation
import epy_block_0
import epy_block_1
import numpy as np
+
from gnuradio import qtgui
class correlator(gr.top_block, Qt.QWidget):
@@ -389,6 +390,7 @@ class correlator(gr.top_block, Qt.QWidget):
self.connect((self.epy_block_0, 0), (self.digital_constellation_decoder_cb_0, 0))
self.connect((self.epy_block_0, 0), (self.qtgui_const_sink_x_0_0, 0))
+
def closeEvent(self, event):
self.settings = Qt.QSettings("GNU Radio", "correlator")
self.settings.setValue("geometry", self.saveGeometry())
@@ -469,6 +471,8 @@ class correlator(gr.top_block, Qt.QWidget):
+
+
def main(top_block_cls=correlator, options=None):
if StrictVersion("4.5.0") <= StrictVersion(Qt.qVersion()) < StrictVersion("5.0.0"):
@@ -477,7 +481,9 @@ def main(top_block_cls=correlator, options=None):
qapp = Qt.QApplication(sys.argv)
tb = top_block_cls()
+
tb.start()
+
tb.show()
def sig_handler(sig=None, frame=None):
@@ -493,9 +499,9 @@ def main(top_block_cls=correlator, options=None):
def quitting():
tb.stop()
tb.wait()
+
qapp.aboutToQuit.connect(quitting)
qapp.exec_()
-
if __name__ == '__main__':
main()