Commit 60ac698f authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

BUG: Make this code work with PyQt 3.17. Fixes #4283.

parent 4d764647
......@@ -150,9 +150,9 @@ class QVTKRenderWindowInteractor(qt.QWidget):
self._Iren.SetRenderWindow(self._RenderWindow)
# do all the necessary qt setup
self.setBackgroundMode(2) # NoBackground
self.setBackgroundMode(qt.Qt.NoBackground)
self.setMouseTracking(1) # get all mouse events
self.setFocusPolicy(2) # ClickFocus
self.setFocusPolicy(qt.QWidget.ClickFocus)
if parent == None:
self.show()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment