I hope to be wrong, but I think nothing is changed until now. VTK+wxPython works
only in Windows, not unix, so it's not applicable for a cross-platform project.
There's a C++ wxVTKWindow around, I was able to use it with wxGTK but it does
not catch the expose event, so the VTK canvas is not repainted when a window
overlaps. The same problem happens with wxMotif.
To get wxPython working with VTK it's necessary first to get wxGTK working
correctly, then to add to VTK-python the vtkRenderWindow's SetParentId method,
because SetWindowInfo works for MSW only.
I'll be glad to here that there's some news about this, in my opinion this
problem could be easily solved by someone with a deeper knowledge of VTK-python
bindings.
···
On 23/10/2000 21.24.37 Simon Cooke wrote:
A thread from last November discussed using the Visualisation Toolkit
(VTK) under wxPython, with a draft for an interface class. Has any futher work
been done on this? Does anyone have experience using this in a cross-platform
application? Any comments would be greatly appreciated.
>A thread from last November discussed using the Visualisation Toolkit
>(VTK) under wxPython, with a draft for an interface class. Has any futher
work
>been done on this? Does anyone have experience using this in a
cross-platform
>application? Any comments would be greatly appreciated.
>
I hope to be wrong, but I think nothing is changed until now.
Sorry, you are correct. Nothing has changed that I know of, although I
havn't tried running it since VTK version 2.4.
I'll be glad to here that there's some news about this, in my opinion this
problem could be easily solved by someone with a deeper knowledge of
VTK-python
bindings.
I agree. My knowledge of VTK barely scratches the surface. It should be a
simple matter of editing wxPython/lib/vtk.py and calling the right VTK
methods to get the vtkRenderWindow to play nice with the wxGTK window. You
can get the X window handle by calling wxWindow.GetHandle(), but at least in
2.4 VTK there doesn't seem to be a reliable way to give it to VTK, (that I
clould find anyway.)
If somebody figures it out please send patches for wxPython/lib/vtk.py.