summaryrefslogtreecommitdiff
path: root/grc/gui
diff options
context:
space:
mode:
authorJosh Blum2009-08-14 23:23:53 -0700
committerJosh Blum2009-08-14 23:23:53 -0700
commitde213686dfa9608bcf59e2c14a4e326049e9779e (patch)
tree69cd4e5858d7bb246b8335792764bfd89b1d1f55 /grc/gui
parent0a73facce3ce4eba23676df5f22f222df319ed87 (diff)
downloadgnuradio-de213686dfa9608bcf59e2c14a4e326049e9779e.tar.gz
gnuradio-de213686dfa9608bcf59e2c14a4e326049e9779e.tar.bz2
gnuradio-de213686dfa9608bcf59e2c14a4e326049e9779e.zip
params, sources, and sinks now stored internally as lists. The keys for said objects are now only stored in one place (in the object).
Diffstat (limited to 'grc/gui')
-rw-r--r--grc/gui/Block.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 0496f0a28..4add3aa19 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -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):