diff options
author | Josh Blum | 2009-08-30 10:34:10 -0700 |
---|---|---|
committer | Josh Blum | 2009-08-30 10:34:10 -0700 |
commit | 152fcbc219cd2e4f6df7b38843844bc85fdf2bc2 (patch) | |
tree | 5c94998205fb917be6e6c2d443ddf10d613fc0fb /grc/base/Block.py | |
parent | cc13a27310e4ab91ebf90ee2d9cd6e3c659e1bc0 (diff) | |
download | gnuradio-152fcbc219cd2e4f6df7b38843844bc85fdf2bc2.tar.gz gnuradio-152fcbc219cd2e4f6df7b38843844bc85fdf2bc2.tar.bz2 gnuradio-152fcbc219cd2e4f6df7b38843844bc85fdf2bc2.zip |
Switched the python classes to inherit from the base and gui classes.
Use only **kwargs so all contructor parameters must be passed with keys.
Moved gui input forms classes from base to gui param module.
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r-- | grc/base/Block.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index 737010305..a9dae660a 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -74,16 +74,16 @@ class Block(Element): self._params = list() #add the id param self.get_params().append(self.get_parent().get_parent().Param( - self, - odict({ + block=self, + n=odict({ 'name': 'ID', 'key': 'id', 'type': 'id', }) )) self.get_params().append(self.get_parent().get_parent().Param( - self, - odict({ + block=self, + n=odict({ 'name': 'Enabled', 'key': '_enabled', 'type': 'raw', |