QT GUI Msg Push Button: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
 
Line 50: Line 50:


; Block definition
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-qtgui/grc/qtgui_msgpushbutton.block.yml qtgui_msgpushbutton.block.yml]


[[Category:Block Docs]]
[[Category:Block Docs]]

Latest revision as of 20:37, 25 September 2023

This block creates a variable push button that creates a message when clicked. Leave the label blank to use the variable id as the label. You can define both the output message pmt name as well as the value and value type.
Added in 3.9

Parameters

(R): Run-time adjustable

Id
The variable name
Label
the name for the push button
Type
options: [Float, Integer, String, Boolean]
Message Property Name
default: pressed
Message Value
default: 1
Button Background
options: [default, silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
Button Font Color
options: see above

See GUI Hint for how to position the GUI within a window.

Example Flowgraph

This flowgraph can be found at [1]

Test msgpush fg.png

Example Output

Test msgpush out.png

Source Files

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
qtgui_msgpushbutton.block.yml