Labels for Qt GUI Chooser are not exposed to modifications at run-time. However, Gnuradio companion flowgraph generates a python script with Qt application. These Qt parameters are accessible from the top_class top_block_cls()
.
Assuming a simple flowgraph with only 'QT GUI Chooser', you can add a 'Python Snippet' block to populate the GUI chooser. For instance, insert:
self._variable_qtgui_chooser_0_combo_box.addItem("FM Radio")
where
self
refers to the top block class
_variable_qtgui_chooser_0_combo_box
is the target comb box (Qt.QComboBox()
)
The grc flowgraph for this example is provided in the image below : https://i.stack.imgur.com/gkNvm.png
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…