[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Display/Hide parameters from an XML Files
From: |
Josh Blum |
Subject: |
Re: [Discuss-gnuradio] Display/Hide parameters from an XML Files |
Date: |
Sat, 31 Jul 2010 10:24:47 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 |
On 07/31/2010 09:32 AM, Zohair wrote:
Hi All,
I am writing some blocks and I need help in XML file.
1- I have a drop down menu and I want the chosen option to be displayed on
the block.
2- I have an integer parameter that is by default displayed on the block but
I want to hide it.
In my current file I wrote:
<name>Equation</name>
<key>option</key>
<value>1</value>
<type>int</type>
<hide>#if $option() == 'True' then 'none' else 'part'#</hide>
True is not in the list of options, and the type is int.
$option() == 1
-Josh
<option>
<name>First Order</name>
<key>1</key>
</option>
<option>
<name>Second Order</name>
<key>2</key>
</option>
<option>
<name>Third Order</name>
<key>3</key>
</option>
<name>N</name>
<key>N</key>
<value>4</value>
<type>int</type>
(for some reason the param and /param tags may be hidden in my message)
So I mean I want to display the equation order on the block and hide N.
Any workarounds, please?
Cheers,
Zohair