Closed ShaunKulesa closed 3 years ago
You just need to import GLU
from OpenGL import GL, GLU
Lol! Silly me. Thanks.
I just noticed it runs
GLU.gluPerspective(45, (self.width/self.height), 0.1, 50.0)
without me even using the bind to run the event.
app.bind("<MouseWheel>", AppOgl.mouse_wheel)
I took out
app.bind("<MouseWheel>", AppOgl.mouse_wheel)
and it still changes the perspective.
edit: i left it in the initgl
Hello, its me again from last year. I was wondering how to inherit GLU in a function I have in the OpenGLFrame class. I keep getting the error
This is my code: