From c088a546ac7ae55748e5421201f3387f3e1286f9 Mon Sep 17 00:00:00 2001
From: jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Date: Mon, 27 Aug 2007 18:49:11 +0000
Subject: Merged r6171:6186 from jcorgan/fg into trunk.

Changes hierarchical flow graph API to use gr.top_block instead
of gr.runtime.

See discuss-gnuradio mailing list for explanation of changes.

GRC has not been updated to use the changed API.


git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6187 221aa14e-8319-0410-a670-987f0aec2ac5
---
 gnuradio-examples/python/hier/audio/dial_tone2.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'gnuradio-examples/python/hier/audio/dial_tone2.py')

diff --git a/gnuradio-examples/python/hier/audio/dial_tone2.py b/gnuradio-examples/python/hier/audio/dial_tone2.py
index a5010faa5d..70d1e53d20 100755
--- a/gnuradio-examples/python/hier/audio/dial_tone2.py
+++ b/gnuradio-examples/python/hier/audio/dial_tone2.py
@@ -60,13 +60,9 @@ if __name__ == '__main__':
 			options.audio_output, 
 			options.amplitude)
 			      
-	# Create an instance of a runtime, passing it the top block
-	# to process
-	runtime = gr.runtime(top)
-
 	try:    
 		# Run forever
-		runtime.run()
+		top.run()
 	except KeyboardInterrupt:
 		# Ctrl-C exits
 		pass
-- 
cgit v1.2.3