commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10272 - in gnuradio/trunk/grc: . src/platforms/python


From: jblum
Subject: [Commit-gnuradio] r10272 - in gnuradio/trunk/grc: . src/platforms/python
Date: Tue, 20 Jan 2009 16:36:20 -0700 (MST)

Author: jblum
Date: 2009-01-20 16:36:17 -0700 (Tue, 20 Jan 2009)
New Revision: 10272

Modified:
   gnuradio/trunk/grc/src/platforms/python/Param.py
   gnuradio/trunk/grc/todo.txt
Log:
dont hide vlen controller when vlen > 1

Modified: gnuradio/trunk/grc/src/platforms/python/Param.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/python/Param.py    2009-01-20 22:44:51 UTC 
(rev 10271)
+++ gnuradio/trunk/grc/src/platforms/python/Param.py    2009-01-20 23:36:17 UTC 
(rev 10272)
@@ -130,10 +130,18 @@
                if self.get_key() == 'id' and self.get_parent().get_key() not 
in (
                        'variable', 'variable_slider', 'variable_chooser', 
'variable_text_box', 'parameter', 'options'
                ): return 'part'
-               #hide port controllers
+               #hide port controllers for type and nports
                if self.get_key() in ' '.join(map(
-                       lambda p: ' '.join([p._type, p._vlen, p._nports]), 
self.get_parent().get_ports())
+                       lambda p: ' '.join([p._type, p._nports]), 
self.get_parent().get_ports())
                ): return 'part'
+               #hide port controllers for vlen, when == 1
+               if self.get_key() in ' '.join(map(
+                       lambda p: p._vlen, self.get_parent().get_ports())
+               ):
+                       try:
+                               assert int(self.evaluate()) == 1
+                               return 'part'
+                       except: pass
                #hide empty grid positions
                if self.get_key() == 'grid_pos' and not self.get_value(): 
return 'part'
                return hide

Modified: gnuradio/trunk/grc/todo.txt
===================================================================
--- gnuradio/trunk/grc/todo.txt 2009-01-20 22:44:51 UTC (rev 10271)
+++ gnuradio/trunk/grc/todo.txt 2009-01-20 23:36:17 UTC (rev 10272)
@@ -15,7 +15,6 @@
 -change param dialog to panel within main window
 -command line option for additional block wrappers
 -log slider gui control
--icons for certain blocks, + for add
 -zoom in/out (cairo vector graphics) (use scroll wheel as control)
 -search for blocks
 -click and drag on whitespace to scroll
@@ -29,7 +28,6 @@
 -auto generate hier library
 -auto clean hier library
 -add hier blocks to tree without restart?
--dont hide vlen controller when vlen > 1
 -dont generate py files in .grc file dir
 -save/restore cwd
 -special connection validation rules for disabled blocks





reply via email to

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