Avoid calling QGraphicsWidget.itemChange--this causes segfault in python3 + pyqt
Fixes #10
This commit is contained in:
parent
e84c0d7a93
commit
25d666a1da
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user