Commit 25d666a1 authored by luke's avatar luke
Browse files

Avoid calling QGraphicsWidget.itemChange--this causes segfault in python3 + pyqt

Fixes #10
parent e84c0d7a
......@@ -201,7 +201,8 @@ class ViewBox(GraphicsWidget):
return interface == 'ViewBox'
def itemChange(self, change, value):
ret = GraphicsWidget.itemChange(self, change, value)
# Note: Calling QWidget.itemChange causes segv in python 3 + PyQt
ret = QtGui.QGraphicsItem.itemChange(self, change, value)
if change == self.ItemSceneChange:
scene = self.scene()
if scene is not None:
......
Markdown is supported
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