On Tue, Mar 10, 2015 at 8:26 PM, Marcus D. Leech <mle...@ripnet.com> wrote:

> Does the formatter callback work?  I can't get it to do anything useful,
> using a lambda expression stuffed into a variable.  How does the widget
> calll the desired function?
>

Hmm, just tried this and it worked:

lambda x: "Value = {0} (put units here)".format(perform_function_on(x))

So the expression returns a string.

Tom
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to