[vtkusers] VTK CVS + wxPython...

Andrea Gavana andrea.gavana at polymtl.ca
Wed Jul 21 08:41:54 EDT 2004


Hello NG,

      I've just uninstalled the Python Enthought and reinstalled Python 2.3.4
from python.org, together with wxpython 2.4.2.4, Numeric, and other useful
tools. In any case, nothing is changed. By running the simple example in
wxVTKRenderWindowInteractor (the cone), I still get 2 separate windows, as
before. I followed the suggestion from Charl, and removed widget.Initialize()
and widget.Start() from wxVTKRenderWindowInteractor (cone example). What I get
now, is only the grey windows with title "wxRenderWindow", but no cone is
displayed, no interaction, nothing inside. I do not have anymore the python
enthought edition on my PC, but this does not seem to be the problem.
I don't know what's happening... Charl, do you have any suggestion?

Thanks to you all for your useful help.

Andrea.

Selon "Charl P. Botha" <c.p.botha at ewi.tudelft.nl>:

> Andrea Gavana wrote:
> > If I run the example in wxVTKRenderWindowInteractor, I get the same
> behavior:
> >
> > the first window contains the cone actor, its title is "Visualization
> Toolkit -
> > Win32OpenGL #1", and it is NOT interactive. I can not pan, zoom, rotate
> > anything.
> > The second window has the title "wxRenderWindow" (that is supposed to be
> the
> > title of the main window, the only one that should be shown), it is grey
> and
> > nothing is displayed in it.
> >
> > Has anyone already seen something like this? I am a bit confused now, I
> thought
> > that vtkRenderWindow and vtkRenderWindowInteractor should be used together.
> > Obviously I made a mistake...
>
> If you run wxVTKRenderWindowInteractor.py, you should see only one
> window.  It seems something is not working correctly on your setup.
>
> I'm assuming you're still running wxPython 2.4.2.4.  Have you removed
> Enthought yet?  If not, it's difficult to be sure that you're using the
> libraries that you think you're using.
>
> What happens if you comment out the "widget.Initialize()" and
> "widget.Start()" lines in the wxVTKRenderWindowInteractor.py example?
>
>
> --
> charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
>






More information about the vtkusers mailing list