summaryrefslogtreecommitdiff
path: root/grc/src/platforms
diff options
context:
space:
mode:
authorjblum2008-10-12 18:40:30 +0000
committerjblum2008-10-12 18:40:30 +0000
commit4e6d4d61e28f236c7210ee8584c434d393bea993 (patch)
treedcfdd25e7b2c7fe60f0f0a3876415aceddbe5726 /grc/src/platforms
parentbdc6be8f9dd7f591122078302607b01f3890ec23 (diff)
downloadgnuradio-4e6d4d61e28f236c7210ee8584c434d393bea993.tar.gz
gnuradio-4e6d4d61e28f236c7210ee8584c434d393bea993.tar.bz2
gnuradio-4e6d4d61e28f236c7210ee8584c434d393bea993.zip
autohide grid pos and slider len, added slider len param
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9784 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms')
-rw-r--r--grc/src/platforms/python/Param.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/grc/src/platforms/python/Param.py b/grc/src/platforms/python/Param.py
index 1381f6490..321913ea8 100644
--- a/grc/src/platforms/python/Param.py
+++ b/grc/src/platforms/python/Param.py
@@ -77,6 +77,7 @@ class Param(_Param):
Get the hide value from the base class.
Hide the ID parameter for most blocks. Exceptions below.
If the parameter controls a port type, vlen, or nports, return part.
+ If the parameter is an empty grid position, return part.
These parameters are redundant to display in the flow graph view.
@return hide the hide property string
"""
@@ -90,6 +91,8 @@ class Param(_Param):
if self.get_key() in ' '.join(map(
lambda p: ' '.join([p._type, p._vlen, p._nports]), self.get_parent().get_ports())
): return 'part'
+ #hide empty grid positions
+ if self.get_key() == 'grid_pos' and not self.get_value(): return 'part'
return hide
def evaluate(self):