Symptom:
Application crash when instantiating a pyqtchart Flowchart object.
Root Cause:
Seems to stem from an AttributeError in the pyqtgraph.flowchart.Terminal::TerminalGraphicsItem class.
Specifically line 277 during the creation of a QtGui.QGraphicsRectItem.
For whatever reason the PyQt api does not recognize the positional parent attribute in the QGraphicsRectItem constructor
class TerminalGraphicsItem(GraphicsObject):
def __init__(...):
# Error due to self attribute passed as last positional param
self.box = QtGui.QGraphicsRectItem(0, 0, 10, 10, self)
# Note: supplying the named key-word 'parent' does not fix this either
# Workaround
self.box = QtGui.QGraphicsRectItem(0, 0, 10, 10)
self.box.setParentItem(self)
Symptom: Application crash when instantiating a pyqtchart Flowchart object.
Root Cause: Seems to stem from an AttributeError in the pyqtgraph.flowchart.Terminal::TerminalGraphicsItem class. Specifically line 277 during the creation of a QtGui.QGraphicsRectItem. For whatever reason the PyQt api does not recognize the positional parent attribute in the QGraphicsRectItem constructor
Running on Windows 10 build 1709