View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012877VTK(No Category)public2012-01-26 16:352012-01-26 17:08
ReporterChristian Jauvin 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0012877: Type error in vtk/wx/wxVTKRenderWindowInteractor.py
DescriptionAt 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)
Tagspython
ProjectTBD
Typecrash
Attached Files

 Relationships

  Notes
(0027983)
David Gobbi (developer)
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

 Issue History
Date Modified Username Field Change
2012-01-26 16:35 Christian Jauvin New Issue
2012-01-26 16:37 Christian Jauvin Tag Attached: python
2012-01-26 16:46 David Gobbi Assigned To => David Gobbi
2012-01-26 16:46 David Gobbi Status backlog => tabled
2012-01-26 17:08 David Gobbi Note Added: 0027983
2012-01-26 17:08 David Gobbi Status tabled => closed
2012-01-26 17:08 David Gobbi Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team