diff options
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/FlowGraph.py | 2 | ||||
-rw-r--r-- | grc/python/flow_graph.tmpl | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/grc/python/FlowGraph.py b/grc/python/FlowGraph.py index 180d605720..bf98c7ab38 100644 --- a/grc/python/FlowGraph.py +++ b/grc/python/FlowGraph.py @@ -82,7 +82,7 @@ class FlowGraph(_FlowGraph, _GUIFlowGraph): return [{ 'label': str(pad.get_param('label').get_evaluated()), 'type': str(pad.get_param('type').get_evaluated()), - 'vlen': str(pad.get_param('vlen').get_evaluated()), + 'vlen': str(pad.get_param('vlen').get_value()), 'size': pad.get_param('type').get_opt('size'), 'optional': bool(pad.get_param('optional').get_evaluated()), } for pad in expanded_pads] diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl index 3e9520a14f..5daf80f685 100644 --- a/grc/python/flow_graph.tmpl +++ b/grc/python/flow_graph.tmpl @@ -322,11 +322,14 @@ if __name__ == '__main__': #end if #end if tb.show() + def quitting(): + tb.stop() + tb.wait() + qapp.connect(qapp, Qt.SIGNAL("aboutToQuit()"), quitting) #for $m in $monitors (tb.$m.get_id()).start() #end for qapp.exec_() - tb.stop() tb = None #to clean up Qt widgets #elif $generate_options == 'no_gui' tb = $(class_name)($(', '.join($params_eq_list))) |