summaryrefslogtreecommitdiff
path: root/grc/gui/FlowGraph.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2014-08-26 12:21:42 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2014-08-26 12:21:42 -0700
commit5af1200d20fd41a940ece92d53eabc94427e9145 (patch)
treed208dfd4862a8b466a30f6180ac34248539dc10e /grc/gui/FlowGraph.py
parent07c6d92ba2ca5ff9f82ada8b1b571a701c603910 (diff)
parent1e0707c9cb76cf00771a282a8e544ba4d6c807df (diff)
Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg'
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r--grc/gui/FlowGraph.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 31017a9923..44d46b9bc4 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -348,6 +348,23 @@ class FlowGraph(Element):
self.create_labels()
self.create_shapes()
+ def reload(self):
+ """
+ Reload flow-graph (with updated blocks)
+
+ Args:
+ page: the page to reload (None means current)
+ Returns:
+ False if some error occurred during import
+ """
+ success = False
+ data = self.export_data()
+ if data:
+ self.unselect()
+ success = self.import_data(data)
+ self.update()
+ return success
+
##########################################################################
## Get Selected
##########################################################################