params, sources, and sinks now stored internally as lists. The keys for said objects...
[debian/gnuradio] / grc / gui / Block.py
index 0496f0a28432a0ce7cc871a8ddf50a82b4703b78..4add3aa195f9db8d34cd46c09104fd7bf78d2467 100644 (file)
@@ -43,7 +43,7 @@ class Block(Element):
                Add graphics related params to the block.
                """
                #add the position param
-               self._params['_coordinate'] = self.get_parent().get_parent().Param(
+               self.get_params().append(self.get_parent().get_parent().Param(
                        self,
                        odict({
                                'name': 'GUI Coordinate',
@@ -52,8 +52,8 @@ class Block(Element):
                                'value': '(0, 0)',
                                'hide': 'all',
                        })
-               )
-               self._params['_rotation'] = self.get_parent().get_parent().Param(
+               ))
+               self.get_params().append(self.get_parent().get_parent().Param(
                        self,
                        odict({
                                'name': 'GUI Rotation',
@@ -62,7 +62,7 @@ class Block(Element):
                                'value': '0',
                                'hide': 'all',
                        })
-               )
+               ))
                Element.__init__(self)
 
        def get_coordinate(self):