<DIV>Hello,</DIV>
<DIV>I'm using VTK 4.2 with Python 2.3 and wxWindows (wxPython) under Windows.</DIV>
<DIV>Problem : wxVTKRenderWindow crashes on exit (fatal error on python.exe). wxPython doesn't like VTK.</DIV>
<DIV>I tried to make my own wrapper :</DIV>
<DIV> </DIV>
<DIV>from wxPython.wx import *<BR>from vtkpython import *</DIV>
<DIV>def Test():<BR> app = wxPySimpleApp()<BR> frame = wxFrame(None, -1, "wxRenderWindow", size=wxSize(400,400))</DIV>
<DIV> renWin = vtkRenderWindow()<BR> ren = vtkRenderer()<BR> renWin.AddRenderer(ren)<BR> cone = vtkConeSource()<BR> cone.SetResolution(8)<BR> coneMapper = vtkPolyDataMapper()<BR> coneMapper.SetInput(cone.GetOutput())<BR> coneActor = vtkActor()<BR> coneActor.SetMapper(coneMapper)<BR> ren.AddActor(coneActor)</DIV>
<DIV> renWin.SetWindowInfo(str(frame.GetHandle()))<BR> <BR> frame.Show(1)<BR> renWin.Render()<BR> app.MainLoop()</DIV>
<DIV> </DIV>
<DIV>if __name__ == "__main__":<BR> Test()<BR></DIV>
<DIV>but it also crash on exit, but this time python handles it in a Runtime error message box :</DIV>
<DIV>"R6025 - pure virtual function call"</DIV>
<DIV> </DIV>
<DIV>What's wrong ?</DIV><p><br><hr size=1><font face=arial size=-1>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !<br>
<a href=http://fr.mail.yahoo.com>Testez le nouveau Yahoo! Mail</a></font>