WX Gui Scope Sink, odd appearance in Windows vs. Ubuntu

In looking at the GRC example, BER Simulation, I noticed that the WX Gui
Scope Sink window looks very different depending on whether it is
Windows or Ubuntu. The Windows version looks a bit odd. I was
wondering if anyone else is seeing the same thing, or if it is something
that I’m doing wrong.

A screen shot of the two side by side can be see here:
http://www.sethhollar.com/BERSimulationWindowsVsUbuntu.png

Thanks,
Seth

Nella citazione in data Mon Nov 26 19:02:33 2012, Seth Hollar ha
scritto:

Seth


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

the windows version is the non-GL version of the Scope Sink. I’m
experiencing this issue also on MacOs X…you can try editing your
“config.conf” file (i don’t know where it is on windows based systems.
In unix like systems is in the hidden folder gnuradio placed in your
HOME : “.gnuradio/config.conf” - if it doesn’t exist you can create it
and so override the default settings) and then add the following lines

[wxgui]
style=gl

Please let me know if it works because I’m really interested too.

Regards, Arturo

Hi Arturo,
I did two things:

  1. I changed the config file located in c:\users\USERNAME\config.conf
    per your suggestion
  2. I installed PyOpenGL

When I ran BER Simulation, I got a couple of errors dealing with the
GUI:

Traceback (most recent call last):
File
“C:\gnuradio\install\lib\site-packages\gnuradio\wxgui\forms\forms.py”,
line 100, in
widget.Bind(EVT_DATA, lambda x: self._update(x.data))
File
“C:\gnuradio\install\lib\site-packages\gnuradio\wxgui\forms\forms.py”,
line 503, in _update
def _update(self, i): self._notebook.SetSelection(i, 0)
File
“C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx_controls.py”, line
3021, in SetSelection
return controls.BookCtrlBase_SetSelection(*args, **kwargs)
TypeError: BookCtrlBase_SetSelection() takes at most 2 arguments (3
given)

As best as I can tell, the function for the widget, SetSelection, cannot
handle receiving a -1. I’m guessing that what works under some OS’s
doesn’t necessarily work under others with native controls.

In the end, I reverted back to not using OpenGL. I, too, would be
curious if anyone got the OpenGl version of the Scope working.

Thanks for your help.
-Seth

Nella citazione in data Tue Nov 27 16:35:52 2012, Seth Hollar ha
scritto:

“C:\gnuradio\install\lib\site-packages\gnuradio\wxgui\forms\forms.py”,
TypeError: BookCtrlBase_SetSelection() takes at most 2 arguments (3
-Seth

A screen shot of the two side by side can be see here:

[wxgui]
style=gl

Please let me know if it works because I’m really interested too.

Regards, Arturo

If you don’t mind, could you list me your installation steps of
gnuradio under windows ? Firstly I installed python, then gnuradio,
then other libraries such as wxpython qt and so on but i can’t set the
right PATH in the windows environment variables panel to start
gnuradio-companion or import the libraries into python itself.

would you be so kind to help me set the PATH so i can work on this
issue ? I look forward to hear from you.

Regards, Arturo.

You may find this helpful. A bunch of links to s/w and install
instructions:
http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio_Windows#Installation-Tasks

This is more of a link for building from source:
http://gnuradio.org/redmine/projects/gnuradio/wiki/CMakeWork

-josh