[vtkusers] running python from the interpreter

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Feb 28 15:15:00 EST 2005


	The problem of "X connection to :0.0 broken (explicit kill or server 
shutdown)." was only very recenlty fixed in VTK CVS. But you should be 
albe to exit properly your app pressing q or Q. All example using 
wxWidget, tk, Qt or GTK works this way.

	Have a look within :

- VTK/Wrapping/Python/vtk/qt
- VTK/Wrapping/Python/vtk/tk
- VTK/Wrapping/Python/vtk/wx
- VTK/Wrapping/Python/vtk/gtk


Eduardo Suarez wrote:
> I would like to know if it is possible to run from python a renderwindow 
> example, and then to run it again. Or just to run it and then exit 
> without breaking. I have tried but i get next error
> [otto:python_itk_vtk/ 513]$ python
> Python 2.3.5 (#2, Feb  9 2005, 00:38:15)
> [GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import RenderWithVtk
> [works ok, but when i click close windows (q key does not work)...]
> X connection to :0.0 broken (explicit kill or server shutdown).
> [otto:python_itk_vtk/ 514]$
> Thanks a lot,
> -Eduardo
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

More information about the vtkusers mailing list