summaryrefslogtreecommitdiff
path: root/grc/python/flow_graph.tmpl
diff options
context:
space:
mode:
authorJosh Blum2010-12-05 17:21:07 -0500
committerJosh Blum2011-03-01 17:02:06 -0800
commit7ed83c72dbd079a50a421661a874c3ac94a34bd6 (patch)
treeecad7feb3dee49c7ec2bd048fd7162a83f8d03d7 /grc/python/flow_graph.tmpl
parent75c53194d36b4c3b02373b4feb916e6a9ad69b83 (diff)
downloadgnuradio-7ed83c72dbd079a50a421661a874c3ac94a34bd6.tar.gz
gnuradio-7ed83c72dbd079a50a421661a874c3ac94a34bd6.tar.bz2
gnuradio-7ed83c72dbd079a50a421661a874c3ac94a34bd6.zip
grc: added qtgui support to grc (just added sink)
Diffstat (limited to 'grc/python/flow_graph.tmpl')
-rw-r--r--grc/python/flow_graph.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index a1a9308aa..676da33b4 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -59,6 +59,12 @@ class $(class_name)(grc_wxgui.top_block_gui):
_icon_path = "$icon.get_filename()"
self.SetIcon(wx.Icon(_icon_path, wx.BITMAP_TYPE_ANY))
#end if
+#elif $generate_options == 'qt_gui'
+class $(class_name)(gr.top_block):
+
+ def __init__($param_str):
+ gr.top_block.__init__(self, "$title")
+ self.qapp = QtGui.QApplication(sys.argv)
#elif $generate_options == 'no_gui'
class $(class_name)(gr.top_block):
@@ -242,6 +248,9 @@ if __name__ == '__main__':
tb = $(class_name)($(', '.join($params_eq_list)))
#if $generate_options == 'wx_gui'
tb.Run($flow_graph.get_option('run'))
+ #elif $generate_options == 'qt_gui'
+ tb.start()
+ tb.qapp.exec_()
#elif $generate_options == 'no_gui'
#set $run_options = $flow_graph.get_option('run_options')
#if $run_options == 'prompt'