That "formatter" needs to be a python callable that takes a single
numeric argument. In your case something like:
hex
(hex is a python built-in callable that converts numbers to hex
strings), or, giving you more flexibility:
"0x{:X}".format
(because "{:x}".format(15) returns "F", See [1]). That format allows you
to do much more (fixed width, 0-filling etc).
If things get more complicated, you might just need to use a python lambda.
Best regards,
Marcus
[1] https://docs.python.org/2/library/string.html#formatstrings
On 08.05.2016 02:53, Ryan Marlow wrote:
> Hello All,
> I would like to display an integer variable with the QT GUI label as a
> hex value. Is there a way to do that with the Formatter option? I
> cannot figure out the syntax of the formatter.
> Thanks,
> Ryan Marlow
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio