[Top][All Lists]

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

Re: [Discuss-gnuradio] how to use grc item's value in py

From: Josh Blum
Subject: Re: [Discuss-gnuradio] how to use grc item's value in py
Date: Mon, 07 Sep 2009 14:05:28 -0700
User-agent: Thunderbird (X11/20090817)

Suppose that there is a radiobutton with ID xyz:

Then, a method named "set_xyz" will be generated in the py file.
At runtime, set_xyz is called whenever the radiobutton changes.
You can add a print statement inside this set_xyz method.


nansai hu wrote:
I generated a py file by GRC with a ratiobutton block.(ratiobutton have two
button "Yes" & "No")
And now  I want to modify the py file to implement a if logic by that
That means if user choose "Yes" then Print "XXXX", otherwise, Print "OOOO",
So how and which value of ratiobutton block I should judge in py file?

Is anyone have this kind of experience before? or show me a example, thanks


Discuss-gnuradio mailing list

reply via email to

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