[PyOpenGL-Users] idle + pyopengl
Brought to you by:
mcfletch
|
From: gabor <ga...@ho...> - 2002-03-06 23:14:13
|
hi,
i've got problems when running the pyopengl programs...
i'm using mandrake linux 8.1 nvidia tnt 2.
glut:
if i start a pygl script from the shell it's ok.
but if i start it from idle and at the end close it, idle closes too...
tkinter:
i open a python-tkinter program in idle. i run it. it works fine.
then i want to run it again . and i got an error like:
------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/xlat/pygltest/tile.py", line 86, in ?
checker()
File "/home/xlat/pygltest/tile.py", line 81, in __init__
self.SetupWindow()
File "/home/xlat/pygltest/tile.py", line 52, in SetupWindow
self.ogl = Opengl(master=self.OglFrame, width = 500, height = 500,
double = 1)
File "/usr/lib/python2.2/site-packages/OpenGL/Tk/__init__.py", line
233, in __init__
apply(RawOpengl.__init__, (self, master, cnf), kw)
File "/usr/lib/python2.2/site-packages/OpenGL/Tk/__init__.py", line
188, in __init__
Widget.__init__(self, master, 'togl', cnf, kw)
File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1756, in __init__
self.tk.call(
TclError: invalid command name "togl"
-------------------------------------------------------------------------
i have to restart idle to be able to run the pygl program again...
any ideas?
bye,
gabor
p.s: what ide do you recommend?
|