from gnuradio.qtgui import RangeWidget # Creating RangeWidget object range_widget = RangeWidget(0, 100, 1, "Parameter", "dB", "default", False)
from gnuradio import gr from gnuradio.qtgui import RangeWidget class MyFlowgraph(gr.top_block): def __init__(self): gr.top_block.__init__(self, "MyFlowgraph") # Creating RangeWidget object self.gain_slider = RangeWidget(-70, 20, 0.1, "Gain", "dB", "default", False) # Connecting RangeWidget to the signal processing block self.connect((self.gain_slider, 0), (self.signal_block, 0)) self.run() # Initializing the flowgraph fg = MyFlowgraph() fg.start()Package library: gnuradio.qtgui