Creating Pie Chart from Python

Will McGugan news at NOwillmcguganSPAM.com
Fri Sep 16 16:53:39 CEST 2005


Markus Weihs wrote:
> Hi!
> 
> I tried your script and got the following error:
> 
>   Traceback (most recent call last):
>     File "pie_chart.py", line 302, in OnPaint
>       self.OnDraw()
>     File "pie_chart.py", line 336, in OnDraw
>       segment.Draw(self.angle, self.rot, self.explode)
>     File "pie_chart.py", line 46, in Draw
>       glPopMatrix()
>   OpenGL.GL.GLerror: [Errno 1281] invalid value
> 
> What am I doing wrong?

I'm not sure. Thats a strange place for it to fail. Do you have the 
latest version of pyOpenGL / wxPython?

Its only been tested on Windows, but it just uses basic OpenGL so there 
is not that much to go wrong..

Will McGugan
-- 
http://www.willmcgugan.com
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in 
"jvyy*jvyyzpthtna^pbz")



More information about the Python-list mailing list