diff options
author | Marcus Müller <marcus@hostalia.de> | 2013-10-10 18:32:51 +0200 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-10-12 09:13:26 -0700 |
commit | fb9ad6e707e09c3761762aad2a6673ac5b6c7e2e (patch) | |
tree | 147c1d706cda93beacb326a2b2f09f77639567e7 | |
parent | 69e66ef2675fbfa0cbec967590541589cb33c82d (diff) |
running python slider.py now works again
-rw-r--r-- | gr-wxgui/python/wxgui/slider.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-wxgui/python/wxgui/slider.py b/gr-wxgui/python/wxgui/slider.py index 7194de47c2..9a8bfff7e7 100644 --- a/gr-wxgui/python/wxgui/slider.py +++ b/gr-wxgui/python/wxgui/slider.py @@ -25,12 +25,12 @@ def slider(parent, min, max, callback): # ---------------------------------------------------------------- if __name__ == '__main__': - from gnuradio.wxgui import stdgui + from gnuradio.wxgui import stdgui2 - class demo_graph(stdgui.gui_flow_graph): + class demo_graph(stdgui2.std_top_block): def __init__(self, frame, panel, vbox, argv): - stdgui.gui_flow_graph.__init__ (self, frame, panel, vbox, argv) + stdgui2.std_top_block.__init__ (self, frame, panel, vbox, argv) vbox.Add(slider(panel, 23, 47, self.my_callback1), 1, wx.ALIGN_CENTER) vbox.Add(slider(panel, -100, 100, self.my_callback2), 1, wx.ALIGN_CENTER) @@ -42,7 +42,7 @@ if __name__ == '__main__': print "cb2 = ", val def main (): - app = stdgui.stdapp (demo_graph, "Slider Demo") + app = stdgui2.stdapp (demo_graph, "Slider Demo") app.MainLoop () main () |