summaryrefslogtreecommitdiff
path: root/grc/gui/FlowGraph.py
diff options
context:
space:
mode:
authorJohnathan Corgan2009-09-09 17:38:27 -0700
committerJohnathan Corgan2009-09-09 17:38:27 -0700
commit7f3dc5c263a55d1a992d28d374fc7acc9ebe412b (patch)
tree61f23680cb4c3a8a83dbf947868e0340725856c3 /grc/gui/FlowGraph.py
parent3c8af34f675eadd64b5fc3f0065793f3b3ff47f0 (diff)
parentb8f69ad7ba49aa85239f6de611ddfd040344f66b (diff)
downloadgnuradio-7f3dc5c263a55d1a992d28d374fc7acc9ebe412b.tar.gz
gnuradio-7f3dc5c263a55d1a992d28d374fc7acc9ebe412b.tar.bz2
gnuradio-7f3dc5c263a55d1a992d28d374fc7acc9ebe412b.zip
Merge branch 'grc' of http://gnuradio.org/git/jblum into master
* 'grc' of http://gnuradio.org/git/jblum: use show signal to perform initial gui update Fixed the usrp and usrp2 probe scripts to work with the new gui param api. propsdialog tweaks more code cleanup for properties dialog Rework the params/properties dialog and param gui class: renamed params dialog to props dialog remove unused imports, copyright date update, tweak Created recursive create labels and shapes method for gui element. replaced dict[rot] storage of areas and lines with a single list for the current rotation standardized the Element inheritance __init__ usage in gui better error msg for empty statements Implement a recursive validation api in the base Element class.
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r--grc/gui/FlowGraph.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 5e645be72..35ccf5e27 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -39,7 +39,7 @@ class FlowGraph(Element):
and the connections between inputs and outputs.
"""
- def __init__(self, *args, **kwargs):
+ def __init__(self):
"""
FlowGraph contructor.
Create a list for signal blocks and connections. Connect mouse handlers.
@@ -291,12 +291,13 @@ class FlowGraph(Element):
def update(self):
"""
- Do a global rewrite and validate.
- Call update on all elements.
+ Call the top level rewrite and validate.
+ Call the top level create labels and shapes.
"""
self.rewrite()
self.validate()
- for element in self.get_elements(): element.update()
+ self.create_labels()
+ self.create_shapes()
##########################################################################
## Get Selected