Hi Josh,
On Jul 22, 2010, at 12:12 AM, Josh Blum wrote:
> it seems wx uses color with a "u" and the compatibility layer that wraps
> colour as color is not present for you. Try changing this to Colour and if it
> works send the patch. That should work as a general solution.
Yes, I just discovered this.
Here is the patch:
diff --git a/gr-wxgui/src/python/plotter/gltext.py
b/gr-wxgui/src/python/plotter/gltext.py
index 67f62ca..617d123 100644
--- a/gr-wxgui/src/python/plotter/gltext.py
+++ b/gr-wxgui/src/python/plotter/gltext.py
@@ -193,7 +193,7 @@ class TextElement(object):
img = wx.ImageFromBitmap(bmp)
alpha = img.GetData()
- if isinstance(self._foreground, wx.Color):
+ if isinstance(self._foreground, wx.Colour):
"""
If we have a static color...
"""
Once I changed this to wx.Colour, it didn't show the previous error. how ever,
now I get something related to the OpenGL rendering context:
$ python scopesink_gl.py
input rate 1000000.0 v_scale None t_scale 3e-05
Traceback (most recent call last):
File
"/Users/elvis/Tool/gnuradio-next/gr-wxgui/src/python/plotter/plotter_base.py",
line 187, in _on_paint
for fcn in self._draw_fcns: fcn[1]()
File
"/Users/elvis/Tool/gnuradio-next/gr-wxgui/src/python/plotter/plotter_base.py",
line 59, in draw
self._draw()
File
"/Users/elvis/Tool/gnuradio-next/gr-wxgui/src/python/plotter/grid_plotter_base.py",
line 248, in _draw_grid
(scaled_tick, self.height-self.padding_bottom),
File
"/Users/elvis/Tool/gnuradio-next/gr-wxgui/src/python/plotter/grid_plotter_base.py",
line 356, in _draw_grid_line
GL.glVertexPointerf(points)
File "/Library/Python/2.6/site-packages/OpenGL/latebind.py", line 45, in
__call__
return self._finalCall( *args, **named )
File "/Library/Python/2.6/site-packages/OpenGL/wrapper.py", line 532, in
wrapperCall
cArgs,
File "/Library/Python/2.6/site-packages/OpenGL/arrays/arrayhelpers.py", line
153, in __call__
contextdata.setValue( self.constant, pyArgs[self.pointerIndex] )
File "/Library/Python/2.6/site-packages/OpenGL/contextdata.py", line 57, in
setValue
context = getContext( context )
File "/Library/Python/2.6/site-packages/OpenGL/contextdata.py", line 40, in
getContext
"""Attempt to retrieve context when no valid context"""
OpenGL.error.Error: Attempt to retrieve context when no valid context
Best regards,
Elvis Dowson
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio