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/python/FlowGraph.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/python/FlowGraph.py')
-rw-r--r-- | grc/python/FlowGraph.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/grc/python/FlowGraph.py b/grc/python/FlowGraph.py index 8cad8be49..96188b816 100644 --- a/grc/python/FlowGraph.py +++ b/grc/python/FlowGraph.py @@ -19,6 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import expr_utils from .. base.FlowGraph import FlowGraph as _FlowGraph +from .. gui.FlowGraph import FlowGraph as _GUIFlowGraph from Block import Block from Connection import Connection import re @@ -26,7 +27,11 @@ import re _variable_matcher = re.compile('^(variable\w*)$') _parameter_matcher = re.compile('^(parameter)$') -class FlowGraph(_FlowGraph): +class FlowGraph(_FlowGraph, _GUIFlowGraph): + + def __init__(self, **kwargs): + _FlowGraph.__init__(self, **kwargs) + _GUIFlowGraph.__init__(self) _eval_cache = dict() def _eval(self, code, namespace, namespace_hash): |