[vtkusers] Embed vtkRenderWindow into a wxPythonFrame

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Oct 26 13:25:42 EDT 2004


Philippe,

	This should work. I believe the wxWidgets guys recently change the 
behavior in one direction or the other, so the GetHandle is now 
returning a pointer to a gtk window, which VTK doesn't understand. What 
you really need is the X window behind the gtk pointer.

	I'd suggest you ask your question to wxPython user list, about the 
change in GetHandle, and depending on their anwers switch either to a 
newer or older version of the lib.

HTH
Mathieu


philippe.verney wrote:
> Hi,
> 
> Does someone know how to embed a vtkRenderWindow into a
> wxFrame under Linux ?
> I have no problem to do that on Microsoft Windows XP using
> this code :
> 
> self.renWin3D = vtk.vtkRenderWindow()
> self.renWin3D.SetParentInfo( str( self.panel1.GetHandle() ) )
> 
> It works very well on MS Windows : VTK windows is embeded and
> I can use interactor very easily...
> I'd really like to do the same on Linux...
> 
> Furthermore, I can't use AddObserver command on my
> vtkRenderWindow() on Linux : it doesn't work.. I only can use
> AddObserver with my vtkRenderWindowInteractor...
> 
> I have already seen messages about this problem but no answer
> : is there any???
> 
> Regards
> Philippe
> 
> Accédez au courrier électronique de La Poste : www.laposte.net ; 
> 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)
> 
> 
> 
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list