Legacy application problem

according to eric’s “gr.flow_graph and friends are gone” message,
legacy applications using gr.flow_graph is no longer supported.
but I wanna use
gnuradiogui(http://funwithelectronics.com/sdr/gnuradiogui.py) which is
based “gr.flow_graph”. Then I converted it to “stdgui2.std_top_block”
interface. but it gives me error given below.

[email protected]:~/workspace-py/radiogui/src$ sudo python
gnuradiogui.py
Traceback (most recent call last):
File “gnuradiogui.py”, line 992, in
app = stdgui2.stdapp(vindu,“GNURadio Control GUI”)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7757, in init
self._BootstrapApp()
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7354, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 60, in init
self.panel = stdpanel (self, self, top_block_maker)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line 81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “gnuradiogui.py”, line 67, in init
self.fft = fftsink2.fft_sink_c(self,panel,title=“Spectrum display”,
fft_size=512, sample_rate=self.samplerate,fft_rate=10)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/fftsink2.py”,
line 175, in init
self.win = fft_window(self, parent, size=size)
File
“/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/fftsink2.py”,
line 229, in init
plot.PlotCanvas.init (self, parent, id, pos, size, style, name)
File “/usr/local/lib/python2.5/site-packages/gnuradio/wxgui/plot.py”,
line
428, in init
wx.Window.init(self, parent, id, pos, size, style, name)
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 8157, in init
core.Window_swiginit(self,core.new_Window(*args, **kwargs))
TypeError: in method ‘new_Window’, expected argument 1 of type ‘wxWindow
*’

using old gnuradio codes is suggested to me, but I wanna use the latest
trunk code. could you help me? you can download it from here,

http://rapidshare.com/files/107901280/gnuradiogui.py.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs