[vtkusers] VTK with Python and wxWidgets

Prabhu Ramachandran prabhu_r at users.sf.net
Sat Jan 15 03:58:13 EST 2005


>>>>> "BW" == Brian Wainscott <brian at lstc.com> writes:

    BW> I posted this question to the wxPython lists, and they
    BW> suggested I ask you, so if anyone here can point me to
    BW> information it would be greatly appreciated.
[...]
    BW> Problem: importing vtkpython in my wxPython app causes all the
    BW> wxWidgets to act wrong.  My buttons and slider loose all their
    BW> graphic elements (except their text strings), and I get a lot
    BW> of runtime errors like this:

Works perfectly for me.  VTK-4.4 (built from source), Debian sarge
(i386), wxPython-2.4.2.6 (Debian package).

Just one minor nit with your code.  Avoid using

 from vtkpython import *

Use

 import vtk

instead and access the classes via vtk.vtkSomeClass().

cheers,
prabhu




More information about the vtkusers mailing list