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 --- gr-wxgui/src/python/stdgui2.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gr-wxgui/src/python/stdgui2.py') diff --git a/gr-wxgui/src/python/stdgui2.py b/gr-wxgui/src/python/stdgui2.py index 7b21d6b0ab..e510f174c9 100644 --- a/gr-wxgui/src/python/stdgui2.py +++ b/gr-wxgui/src/python/stdgui2.py @@ -65,11 +65,11 @@ class stdframe (wx.Frame): vbox.Fit(self) def OnCloseWindow (self, event): - self.runtime().stop() + self.top_block().stop() self.Destroy () - def runtime (self): - return self.panel.runtime + def top_block (self): + return self.panel.top_block class stdpanel (wx.Panel): def __init__ (self, parent, frame, top_block_maker): @@ -83,8 +83,7 @@ class stdpanel (wx.Panel): self.SetAutoLayout (True) vbox.Fit (self) - self.runtime = gr.runtime(self.top_block) - self.runtime.start () + self.top_block.start () class std_top_block (gr.top_block): def __init__ (self, parent, panel, vbox, argv): -- cgit v1.2.3