[vtkusers] VTK4/Python (Newbie) question #2: vtkRenderWindowInteractor
David Gobbi
dgobbi at irus.rri.ca
Thu Feb 7 15:59:41 EST 2002
Hi Elvis,
In Python (as in C++) the vtkRenderWindowInteractor will not
start working until you do
iren.Start()
but note than the Start() method will not return until you close
the window, so iren.Start() should be the last line in your
application except possibly for clean-up code that will be
run just before the application exits.
- David
--
David Gobbi, MSc dgobbi at irus.rri.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Thu, 7 Feb 2002, Chen, Elvis wrote:
> Greetings,
>
> here is my newbie question #2 for vtk4/Python.
>
> As I'm working through the examples of "The
> Visualization Toolkit: User's Guide", and trying to
> convert the example tcl codes into Python (figure this
> is a good way of learning), I couldn't get
> vtkRenderWindowInteractor to move/rotate the window
> with mouse. I have the following two lines in my .py
> codes:
>
> iren = vtkRenderWindowInteractor()
> iren.SetRenderWindow( renWin )
>
> Further, when I was trying to run example python codes
> in Graphics/Testing/Python, none of the python example
> has working vtkRenderWindowInteractor.
>
> Is it supposed to be this way, or have I made a
> mistake in compiling VTK4/Python binding? or, a
> working example in python would is very appreciated as
> well.
>
> thanks in advance,
>
> ______________________________________________________________________
> Web-hosting solutions for home and business! http://website.yahoo.ca
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list