gr-wxgui: Added additional color table entries
[debian/gnuradio] / gr-wxgui / src / python / stdgui2.py
index 28b2fadd3e9f1a3f8f00ef0a4d03367d611c9b3d..e510f174c90bd9828f1b0ea0557d780987a4c919 100644 (file)
@@ -5,7 +5,7 @@
 # 
 # GNU Radio is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 # 
 # GNU Radio is distributed in the hope that it will be useful,
@@ -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,13 +83,10 @@ 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.hier_block2):
+class std_top_block (gr.top_block):
     def __init__ (self, parent, panel, vbox, argv):
         # Call the hier_block2 constructor
         # Top blocks have no inputs and outputs
-        gr.hier_block2.__init__(self, "std_top_block",
-                                gr.io_signature(0,0,0),
-                                gr.io_signature(0,0,0))
+        gr.top_block.__init__(self, "std_top_block")