vtk.wx.wxVTKRenderWindow Problem

38 views
Skip to first unread message

Pierre-Alain Moret

unread,
Feb 18, 2018, 4:47:27 PM2/18/18
to wxPython-users
Hello everybody,

I work on MacOS High Sierra and I got a strange error using  vtk.wx.wxVTKRenderWindow : two windows are created instead of one, one with the 3D image and another blank. The mouse interact with the blank window.
 
Moreover I found that the simple example below, consisting in two lines reproduce the problem :

pam$ python

Python 2.7.12 (default, Oct 11 2016, 05:20:59) 

[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> from vtk.wx.wxVTKRenderWindow import wxVTKRenderWindowConeExample

>>> wxVTKRenderWindowConeExample()


Moreover, there are two warnings


Warning: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Rendering/OpenGL2/vtkCocoaRenderWindow.h, line 139

vtkCocoaRenderWindow (0x7ffe00086600): SetNextWindowInfo not implemented (WindowRemap not implemented).


Warning: In /Users/prabhu/src/git/VTKPythonPackage/standalone-build/VTK-source/Rendering/OpenGL2/vtkCocoaRenderWindow.mm, line 1293

vtkCocoaRenderWindow (0x7ffe00086600): Can't remap the window.



Thanks in advance for any help or clue.

P.-A. Moret

Pierre-Alain Moret

unread,
Feb 25, 2018, 11:12:53 AM2/25/18
to wxPython-users
Hi everybody,

I wrote directly to the author of the widget and received an answer that solved the problem. I post it here, in case it can help someone else.

 Hi,

Use from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor

I don't think anyone is using the older wxVTKRenderWindow anymore.  For example::

>>> from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractorConeExample

>>> wxVTKRenderWindowInteractorConeExample()


I just built and uploaded the wheels for VTK and did write these widgets a long time ago but am not good at responding fast.  Instead post on the vtkusers list.  HTH.

cheers,
Prabhu
Reply all
Reply to author
Forward
0 new messages