Creating Pie Chart from Python

Will McGugan news at
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 "", line 302, in OnPaint
>       self.OnDraw()
>     File "", line 336, in OnDraw
>       segment.Draw(self.angle, self.rot, self.explode)
>     File "", 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
"".join({'*':'@','^':'.'}.get(c,0) or chr(97+(ord(c)-84)%26) for c in 

More information about the Python-list mailing list