new preferences
[debian/gnuradio] / grc / src / platforms / gui / Block.py
index a2b5048ecac3f492d488a56c6f273be17f7af88a..ab6a6d0b2242168317fc9f1b5cf2354ed008d459 100644 (file)
@@ -17,7 +17,6 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 """
 
-from ... gui import Preferences
 from Element import Element
 import Utils
 import Colors
@@ -137,13 +136,12 @@ class Block(Element):
                layout.set_font_description(desc)
                self.label_width, self.label_height = layout.get_pixel_size()
                #display the params
-               if Preferences.show_params():
-                       for param in filter(lambda p: p.get_hide() not in ('all', 'part'), self.get_params()):
-                               layout = param.get_layout()
-                               layouts.append(layout)
-                               w,h = layout.get_pixel_size()
-                               self.label_width = max(w, self.label_width)
-                               self.label_height = self.label_height + h + LABEL_SEPARATION
+               for param in filter(lambda p: p.get_hide() not in ('all', 'part'), self.get_params()):
+                       layout = param.get_layout()
+                       layouts.append(layout)
+                       w,h = layout.get_pixel_size()
+                       self.label_width = max(w, self.label_width)
+                       self.label_height = self.label_height + h + LABEL_SEPARATION
                width = self.label_width
                height = self.label_height
                #setup the pixmap