[vtkusers] RenderWindow management, Finalize()

Lars Friedrich lfriedri at imtek.de
Thu Jan 25 09:10:43 EST 2007


Hello all,

when I run the following python code with Linux (debian), I get an error
called 'illegal instruction'. With Windows there is no problem.

#*******************************************
import vtk as V

window = V.vtkRenderWindow()
renderer = V.vtkRenderer()
window.AddRenderer(renderer)
window.Render()

window.Finalize()
del renderer
del window

window = V.vtkRenderWindow()
renderer = V.vtkRenderer()
window.AddRenderer(renderer)
window.Render()
#*******************************************

What am I doing wrong? Is it right to call Finalize() before deleting
the window? What is the usual way to deal with users clicking the
"close" button of a window? How do I kill a window safely from my
script?

Thanks for every comment

Lars



-- 
Dipl.-Ing. Lars Friedrich
Optical Measurement Technology
Department of Microsystems Engineering -- IMTEK
University of Freiburg
Georges-Köhler-Allee 102
D-79110 Freiburg
Germany

phone: +49-761-203-7531
fax:   +49-761-203-7537
room:  01 088
email: lfriedri at imtek.de




More information about the vtkusers mailing list