MantisBT - VTK
View Issue Details
0012877VTK(No Category)public2012-01-26 16:352012-01-26 17:08
Christian Jauvin 
David Gobbi 
normalminorhave not tried
closedfixed 
5.8.0 
 
TBD
crash
0012877: Type error in vtk/wx/wxVTKRenderWindowInteractor.py
At line 379 of vtk/wx/wxVTKRenderWindowInteractor.py:

# make sure the RenderWindow is sized correctly
self._Iren.GetRenderWindow().SetSize(self.GetSizeTuple())

it seems that the argument to SetSize() should be unpacked:

self._Iren.GetRenderWindow().SetSize(*self.GetSizeTuple())

because if not, this error is thrown:

TypeError: SetSize() takes exactly 2 arguments (1 given)
python
Issue History
2012-01-26 16:35Christian JauvinNew Issue
2012-01-26 16:37Christian JauvinTag Attached: python
2012-01-26 16:46David GobbiAssigned To => David Gobbi
2012-01-26 16:46David GobbiStatusbacklog => tabled
2012-01-26 17:08David GobbiNote Added: 0027983
2012-01-26 17:08David GobbiStatustabled => closed
2012-01-26 17:08David GobbiResolutionopen => fixed

Notes
(0027983)
David Gobbi   
2012-01-26 17:08   
I looked into this, the bug is OS X specific. The SetSize(int a[2]) signature of vtkCocoaRenderWindow was not wrapped, I just fixed the header file to ensure that now it will be wrapped from now on. No changes to wxVTKRenderWindowInteractor.py are necessary.

Fixed in commit c9a1819f5b70535b53f237c6924e850ed2e27227