apps/osmocom_fft: fix AttributeError: pyqwidget -> qwidget
This commit is contained in:
parent
8d9e793998
commit
7cd934cfc8
|
@ -242,7 +242,7 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
|
|||
from gnuradio import fosphor
|
||||
self.scope = fosphor.qt_sink_c()
|
||||
self.scope.set_frequency_range(0, input_rate)
|
||||
self.scope_win = sip.wrapinstance(self.scope.pyqwidget(), Qt.QWidget)
|
||||
self.scope_win = sip.wrapinstance(self.scope.qwidget(), Qt.QWidget)
|
||||
self.scope_win.setMinimumSize(800, 300)
|
||||
elif options.waterfall:
|
||||
self.scope = qtgui.waterfall_sink_c(
|
||||
|
@ -256,7 +256,7 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
|
|||
self.scope.enable_grid(False)
|
||||
self.scope.enable_axis_labels(True)
|
||||
self.scope.set_intensity_range(-100, 20)
|
||||
self.scope_win = sip.wrapinstance(self.scope.pyqwidget(), Qt.QWidget)
|
||||
self.scope_win = sip.wrapinstance(self.scope.qwidget(), Qt.QWidget)
|
||||
self.scope_win.setMinimumSize(800, 420)
|
||||
|
||||
elif options.oscilloscope:
|
||||
|
@ -266,7 +266,7 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
|
|||
name="",
|
||||
nconnections=1
|
||||
)
|
||||
self.scope_win = sip.wrapinstance(self.scope.pyqwidget(), Qt.QWidget)
|
||||
self.scope_win = sip.wrapinstance(self.scope.qwidget(), Qt.QWidget)
|
||||
self.scope_win.setMinimumSize(800, 600)
|
||||
|
||||
elif options.qtgui:
|
||||
|
@ -281,7 +281,7 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
|
|||
plottime=True,
|
||||
plotconst=True
|
||||
)
|
||||
self.scope_win = sip.wrapinstance(self.scope.pyqwidget(), Qt.QWidget)
|
||||
self.scope_win = sip.wrapinstance(self.scope.qwidget(), Qt.QWidget)
|
||||
self.scope.set_update_time(1.0/10)
|
||||
self.scope_win.setMinimumSize(800, 600)
|
||||
|
||||
|
@ -294,7 +294,7 @@ class app_top_block(gr.top_block, Qt.QMainWindow):
|
|||
name="",
|
||||
nconnections=1
|
||||
)
|
||||
self.scope_win = sip.wrapinstance(self.scope.pyqwidget(), Qt.QWidget)
|
||||
self.scope_win = sip.wrapinstance(self.scope.qwidget(), Qt.QWidget)
|
||||
self.scope.disable_legend()
|
||||
self.scope_win.setMinimumSize(800, 420)
|
||||
|
||||
|
|
Loading…
Reference in New Issue