summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorJosh Blum2011-03-01 18:18:53 -0800
committerJosh Blum2011-03-01 18:18:53 -0800
commitfedf4fbc9d217926ecbb1917d3c995516d88a8a9 (patch)
tree3e8595875a51b87337123795be8d248069cd3abb /grc
parentfb5d1b80dc97bf940079b5a4b3b3f35002cc60aa (diff)
downloadgnuradio-fedf4fbc9d217926ecbb1917d3c995516d88a8a9.tar.gz
gnuradio-fedf4fbc9d217926ecbb1917d3c995516d88a8a9.tar.bz2
gnuradio-fedf4fbc9d217926ecbb1917d3c995516d88a8a9.zip
qtgui-grc: enable start/stop control through qt widgets
Diffstat (limited to 'grc')
-rw-r--r--grc/blocks/options.xml2
-rw-r--r--grc/python/flow_graph.tmpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/grc/blocks/options.xml b/grc/blocks/options.xml
index e6c7e0287..b27ea900c 100644
--- a/grc/blocks/options.xml
+++ b/grc/blocks/options.xml
@@ -105,7 +105,7 @@ else: self.stop(); self.wait()</callback>
<value>True</value>
<type>bool</type>
<hide>
-#if $generate_options() == 'wx_gui'
+#if $generate_options() in ('qt_gui', 'wx_gui')
#if $run()
part
#else
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index 8757b5204..854d83967 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -235,7 +235,9 @@ if __name__ == '__main__':
#elif $generate_options == 'qt_gui'
qapp = Qt.QApplication(sys.argv)
tb = $(class_name)($(', '.join($params_eq_list)))
+ #if $flow_graph.get_option('run')
tb.start()
+ #end if
tb.show()
qapp.exec_()
#elif $generate_options == 'no_gui'