[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9060 - in grc/trunk/src/grc_gnuradio: . blocks/operat
From: |
jblum |
Subject: |
[Commit-gnuradio] r9060 - in grc/trunk/src/grc_gnuradio: . blocks/operators |
Date: |
Wed, 30 Jul 2008 13:43:48 -0600 (MDT) |
Author: jblum
Date: 2008-07-30 13:43:48 -0600 (Wed, 30 Jul 2008)
New Revision: 9060
Modified:
grc/trunk/src/grc_gnuradio/Param.py
grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml
Log:
hide IO types, and non var IDs
Modified: grc/trunk/src/grc_gnuradio/Param.py
===================================================================
--- grc/trunk/src/grc_gnuradio/Param.py 2008-07-30 19:33:46 UTC (rev 9059)
+++ grc/trunk/src/grc_gnuradio/Param.py 2008-07-30 19:43:48 UTC (rev 9060)
@@ -39,6 +39,23 @@
'grid_pos', 'import',
]
+ def get_hide(self):
+ """!
+ Get the hide value from the base class.
+ If hide was empty and this is a type controller, set hide to
part.
+ @return hide the hide param string
+ """
+ hide = _Param.get_hide(self)
+ #hide IO controlling params
+ if not hide and self.get_key() in (
+ 'type', 'vlen', 'num_inputs', 'num_outputs'
+ ): hide = 'part'
+ #hide ID in non variable blocks
+ elif not hide and self.get_key() == 'id' and
self.get_parent().get_key() not in (
+ 'variable', 'variable_slider', 'variable_chooser',
'variable_text_box', 'parameter', 'options'
+ ): hide = 'part'
+ return hide
+
def evaluate(self):
"""!
Evaluate the value.
Modified: grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml
===================================================================
--- grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml 2008-07-30
19:33:46 UTC (rev 9059)
+++ grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml 2008-07-30
19:43:48 UTC (rev 9060)
@@ -18,7 +18,6 @@
<name>Input Type</name>
<key>type</key>
<type>enum</type>
- <hide>part</hide>
<option>
<name>Complex</name>
<key>complex</key>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9060 - in grc/trunk/src/grc_gnuradio: . blocks/operators,
jblum <=