Re: [PyOpenGL-Users] glutCreateMenu() Type Error
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2007-12-31 05:29:33
|
Jordan Hume wrote: > Hi, > > I'm new to OpenGL programming, and I'm having problems creating popup > menus with glutCreateMenu() in PyOpenGL. When I call > glutCreateMenu(FunctionName), Python throws a TypeError: > > File "build\bdist.win32\egg\OpenGL\GLUT\special.py", line 165, in > glutCreateMenu > result = simple.glutCreateMenu( cCallback ) > ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected > CFunctionType instance instead of CFunctionType > > This error confuses me - I read the 'expected' part to mean "Python > wanted cheese, but instead got... cheese." I'm sorry if I'm missing > something blatantly obvious here, but can someone please help me by > explaining why Python says it wants cheese and then won't eat the > cheese I give it? An approximation of (hopefully all) the > relavent code is below: I just fixed a critical bug in win32 callback handling. Most likely you're seeing that. If you are seeing this on 3.0.0b1, then we may have more problems there, if not, please upgrade and see if that fixes the problem. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |