[PyOpenGL-Users] Multiple togl widgets bug?
Brought to you by:
mcfletch
From: Jozef V. <ve...@gj...> - 2007-01-25 23:58:22
|
Good day, I started playing with OpenGL in python and just can't figure out - why this works: from Tkinter import Frame f = Frame(width = 200, height = 200) f.pack() f.mainloop() f = Frame(width = 200, height = 200) f.pack() f.mainloop() shows second window after closing first one - this does not: from OpenGL.Tk import Opengl o = Opengl(width = 200, height = 200) o.redraw = lambda x: None o.pack() o.mainloop() o = Opengl(width = 200, height = 200) o.redraw = lambda x: None o.pack() o.mainloop() shows first window, and crashes after it is closed Traceback (most recent call last): File "./test.py", line 11, in ? o = Opengl(width = 200, height = 200) File "/usr/lib/python2.4/site-packages/OpenGL/Tk/__init__.py", line 233, in __init__ apply(RawOpengl.__init__, (self, master, cnf), kw) File "/usr/lib/python2.4/site-packages/OpenGL/Tk/__init__.py", line 188, in __init__ Widget.__init__(self, master, 'togl', cnf, kw) File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1862, in __init__ self.tk.call( _tkinter.TclError: invalid command name "togl" Those are results form TOgl-1.5, 1.6 crashed after import, 1.7 did not work either (I tried, but I don't remeber symptoms) Thanks for any hints Good bye Jozef Vesely ve...@gj... |