Issue 19 in glumpy: Undefined GLUT callback function Scroll

1 view
Skip to first unread message

glu...@googlecode.com

unread,
Aug 14, 2012, 4:29:10 AM8/14/12
to Nicolas...@inria.fr
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 19 by moritzka...@gmail.com: Undefined GLUT callback function
Scroll
http://code.google.com/p/glumpy/issues/detail?id=19

What steps will reproduce the problem?
1. Run any Demo that uses a glumpy Window

What is the expected output? What do you see instead?
It will fail to start giving raising this exception:

File "/Users/mkassner/MIT/pupil_google_code/code/Capture/world.py", line
70, in world
fig = glumpy.figure((img_arr.shape[1], img_arr.shape[0]))
File "/Library/Python/2.7/site-packages/glumpy/__init__.py", line 68, in
figure
return Figure(size=size, position=position, parent=None)
File "/Library/Python/2.7/site-packages/glumpy/figure.py", line 90, in
__init__
self._window = Window( size=(w,h), position=position, title='Figure')
File "/Library/Python/2.7/site-packages/glumpy/window/backend_glut.py",
line 147, in __init__
glutScrollFunc( self._scroll)
File "/Library/Python/2.7/site-packages/OpenGL/GLUT/special.py", line
139, in __call__
self.wrappedOperation( cCallback, *args )
File "/Library/Python/2.7/site-packages/OpenGL/GLUT/special.py", line
107, in failFunction
typeName, 'glut%sFunc'%(typeName),
NullFunctionError: Undefined GLUT callback function Scroll, check for
bool(glutScrollFunc) before calling

What version of the product are you using? On what operating system?
MacOS 10.8 or 10.7 latest source (Jun. 26 2012)

Please provide any additional information below.

glu...@googlecode.com

unread,
Aug 14, 2012, 4:49:04 AM8/14/12
to Nicolas...@inria.fr

Comment #1 on issue 19 by moritzka...@gmail.com: Undefined GLUT callback
function Scroll
http://code.google.com/p/glumpy/issues/detail?id=19

it seems that this part in window/backend_glut.py works with the system
macOS glut:
try:
glutScrollFunc = GLUTCallback(
'Scroll', (c_float,c_float), ('delta_x','delta_y'),)
except:
glutScrollFunc = None

but:
146 if glutScrollFunc:
147 glutScrollFunc( self._scroll)

creates the exception.

glu...@googlecode.com

unread,
Aug 17, 2012, 4:00:14 AM8/17/12
to Nicolas...@inria.fr
Updates:
Status: Fixed

Comment #2 on issue 19 by Nicolas...@gmail.com: Undefined GLUT
Thanks, is has been corrected !



Reply all
Reply to author
Forward
0 new messages