QT GUI Sinkqtgui_sink_xQT GUI Widgetsfrom PyQt4 import Qtfrom gnuradio.qtgui import qtguifrom gnuradio.gr import firdesimport sip#set $win = 'self._%s_win'%$id
qtgui.$(type.fcn)(
$fftsize, \#fftsize
$wintype, \#wintype
$fc, \#fc
$bw, \#bw
$name, \#name
$plotfreq, \#plotfreq
$plotwaterfall, \#plotwaterfall
$plottime, \#plottime
$plotconst, \#plotconst
)
self.$(id).set_update_time(1.0 / $rate)
self._$(id)_win = sip.wrapinstance(self.$(id).pyqwidget(), Qt.QWidget)
$(gui_hint()($win))set_frequency_range($fc, $bw)TypetypecomplexenumNamenameQT GUI PlotstringFFT Sizefftsize1024intWindow Typewintypefirdes.WIN_BLACKMAN_hARRISintpartCenter Frequency (Hz)fc0realBandwidth (Hz)bwsamp_raterealPlot FrequencyplotfreqTrueboolpartPlot WaterfallplotwaterfallTrueboolpartPlot TimeplottimeTrueboolpartPlot ConstplotconstTrueboolpartGUI Hintgui_hintgui_hintpartUpdate Raterate10realin$type$num_inputs
The GUI hint can be used to position the widget within the application. \
The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. \
Both the tab specification and the grid position are optional.