[vtkusers] wxVTKRenderWindow

Wesley Brooks wesbrooks at gmail.com
Fri Feb 2 06:18:16 EST 2007


Dear Users of VTK,
Dear Users,

I'm trying to use wxVTKRenderWindow but not having much luck;

>>>python wxVTKRenderWindow.py

(python:5168): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion
`!GTK_WIDGET_REALIZED (widget)' failed

I tried to run the file and I got the above warning, the application
runs, but the picker doesn't work. I've also tried to include a wxVTK
window in a wxPython application. The window veiws the part, and I can
get most interaction with the window, but the picker doesn't work.
When I print out the co-ordinates caught by the pick event I get a
very wrong coordinate such as (11777728 , 0). The picker mothod does
get the right size of window though, in this instance (703 304).

I've just downloaded the latest version of the script from:
http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Wrapping/Python/vtk/wx/

I'm running linux FC5, Python 2.4.3 (#1, Oct 23 2006, 14:19:45) [GCC
4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2 with VTK 5.0.2 and
wxPython-2.6.3.2.

Thanks for any help you can offer.

Yours Faithfully,

Wesley Brooks



More information about the vtkusers mailing list