discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Formatter callback in QT QUI Label widget


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] Formatter callback in QT QUI Label widget
Date: Wed, 11 Mar 2015 11:16:43 -0400

On Tue, Mar 10, 2015 at 8:26 PM, Marcus D. Leech <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]