Re: [PyOpenGL-Users] Tkinter OpenGL Context problem?
Brought to you by:
mcfletch
From: Larry C. <cu...@io...> - 2002-09-13 04:35:50
|
At 11:45 PM 9/12/2002 +0100, you wrote: >hi, Rene, thanks for your speedy response. >I still haven't managed to compile pyopengl properly >on windows yet, so I can't really help. Have you tried the pre-compiled binaries for windows? I'm running this one: PyOpenGL-2.0.0.44.win32-py2.2.exe available here, of course: http://sourceforge.net/project/showfiles.php?group_id=5988 >Unfortunately pyopengl 1.5.5, and 2.0.0.44 are >different in a few areas. .. >Anyone got a list of differences between 1.5.5, and >2.0.0.44? Maybe comparing the function >names/arguments would be useful. Although the >behaviour of some functions is different too. there is a section on upgrading from 1.5 to 2.0 in the official online PyOpengGL manual here: http://pyopengl.sourceforge.net/documentation/manual/upgrading.html but i'm not using any of the commands listed in this section, so none of these tips seem relevant. This is why I suspect it's a TKinter problem or at least an interaction between Tkinter and Pyopengl (thus my suspicion of Tkinter's opengl context). >Is this error happening with the tk demo programs? >These may be helpful in seeing the differences between >the two versions. good idea. i don't see any tk demo programs in my installation of py2.2 except those with the .tcl extension. I'm assuming these contain tk/tcl code, not tkinter code, and therefore can't be run from python. correct? also, it seems like the only demo that could help would be one that uses Pyopengl. the pyopengl demos run, but only a few use tkinter, and none of those build a gui class as a subclass of "Rawopengl" (as my code does). Anyone else out there taking this approach? thanks. cuba > --- Larry Cuba <cu...@io...> wrote: > Hello >Everyone, > > > > Your help is needed on this problem: > > > > Python code that runs perfectly on my old > > Win2K machine, dies on my new > > WinXP machine with the latest versions > > of Python, Tkinter and PyOpenGL. > > > > The Tk windows appear, but then the program > > crashes with the first call to glPushMatrix(). > > > > Could this be a problem with the Tkinter > > OpenGL context? Do I need to do something > > to accommodate the later versions of > > the software? > > > > Any suggestions would be most appreciated. > > Version info and error message below. > > > > Thanks. > > Larry Cuba > > > > Version summary of my two machines: > > > > Win2K box WinXP box > > Python 1.5.2 2.2 > > OpenGL 1.5.5 2.0.0.44 > > Tk/Tcl 8.0 8.3 > > > > > > Error Message: > > > > Exception in Tkinter callback > > Traceback (most recent call last): > > > > File "C:\Program > > Files\Graphics\Python22\lib\lib-tk\Tkinter.py", > > line 1292, in __call__ > > return apply(self.func, args) > > > > File > > >"C:\PROGRA~1\Graphics\Python22\Lib\site-packages\OpenGL\Tk\__init__.py", > > > > line 212, in tkExpose > > self.tkRedraw() > > > > File > > >"C:\PROGRA~1\Graphics\Python22\Lib\site-packages\OpenGL\Tk\__init__.py", > > > > line 198, in tkRedraw > > glPushMatrix() > > > > GLerror: [Errno 1283] stack overflow > >__________________________________________________ >Do You Yahoo!? >Everything you'll ever need on one web page >from News and Sport to Email and Music Charts >http://uk.my.yahoo.com |