6
6
#
7
7
# GNU Radio Python Flow Graph
8
8
# Title: Secplus Rx
9
- # GNU Radio version: 3.10.9.2
9
+ # GNU Radio version: 3.10.11.0
10
10
11
11
from PyQt5 import Qt
12
12
from gnuradio import qtgui
29
29
import secplus_rx_secplus_decode as secplus_decode # embedded python block
30
30
import secplus_rx_secplus_v2_decode as secplus_v2_decode # embedded python block
31
31
import sip
32
+ import threading
32
33
33
34
34
35
@@ -55,14 +56,15 @@ def __init__(self):
55
56
self .top_grid_layout = Qt .QGridLayout ()
56
57
self .top_layout .addLayout (self .top_grid_layout )
57
58
58
- self .settings = Qt .QSettings ("GNU Radio " , "secplus_rx" )
59
+ self .settings = Qt .QSettings ("gnuradio/flowgraphs " , "secplus_rx" )
59
60
60
61
try :
61
62
geometry = self .settings .value ("geometry" )
62
63
if geometry :
63
64
self .restoreGeometry (geometry )
64
65
except BaseException as exc :
65
66
print (f"Qt GUI: Could not restore geometry: { str (exc )} " , file = sys .stderr )
67
+ self .flowgraph_started = threading .Event ()
66
68
67
69
##################################################
68
70
# Variables
@@ -81,9 +83,9 @@ def __init__(self):
81
83
self ._threshold_win = qtgui .RangeWidget (self ._threshold_range , self .set_threshold , "Detection threshold" , "counter_slider" , float , QtCore .Qt .Horizontal )
82
84
self .top_layout .addWidget (self ._threshold_win )
83
85
# Create the options list
84
- self ._freq_options = [310150000 , 315150000 , 390150000 ]
86
+ self ._freq_options = [310150000 , 315150000 , 390150000 , 433920000 ]
85
87
# Create the labels list
86
- self ._freq_labels = ['310 MHz' , '315 MHz' , '390 MHz' ]
88
+ self ._freq_labels = ['310 MHz' , '315 MHz' , '390 MHz' , '433 MHz' ]
87
89
# Create the combo box
88
90
# Create the radio buttons
89
91
self ._freq_group_box = Qt .QGroupBox ("Frequency" + ": " )
@@ -197,7 +199,7 @@ def updateButtonChecked(self, button_id):
197
199
198
200
199
201
def closeEvent (self , event ):
200
- self .settings = Qt .QSettings ("GNU Radio " , "secplus_rx" )
202
+ self .settings = Qt .QSettings ("gnuradio/flowgraphs " , "secplus_rx" )
201
203
self .settings .setValue ("geometry" , self .saveGeometry ())
202
204
self .stop ()
203
205
self .wait ()
@@ -261,6 +263,7 @@ def main(top_block_cls=secplus_rx, options=None):
261
263
tb = top_block_cls ()
262
264
263
265
tb .start ()
266
+ tb .flowgraph_started .set ()
264
267
265
268
tb .show ()
266
269
0 commit comments