The python vtk.qt module doesn't work with new PyQt
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The following error occurs when the python Qt examples are run:
File "VTKbin/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py", line 153, in init self.setBackgroundMode(2) # NoBackground TypeError: argument 1 of QWidget.setBackgroundMode() has an invalid type
Versions of PyQt from around 3.2 onward require the use of enum values instead of ints, e.g.
self.setBackgroundMode(Qt.NoBackground)
self.setMouseTracking(1)
self.setFocusPolicy(QWidget.ClickFocus)