From 9e4443cc68d3a16b7e250d015b94b81c2e78143c Mon Sep 17 00:00:00 2001 From: Kenneth Lyons Date: Thu, 21 Apr 2016 12:02:49 -0700 Subject: [PATCH] More detailed comment. --- pyqtgraph/graphicsItems/CurvePoint.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/CurvePoint.py b/pyqtgraph/graphicsItems/CurvePoint.py index c2a6db84..f7682a43 100644 --- a/pyqtgraph/graphicsItems/CurvePoint.py +++ b/pyqtgraph/graphicsItems/CurvePoint.py @@ -91,7 +91,9 @@ class CurvePoint(GraphicsObject): pass def makeAnimation(self, prop='position', start=0.0, end=1.0, duration=10000, loop=1): - # automatic encoding when QByteString expected was removed in PyQt v5.5 + # In Python 3, a bytes object needs to be used as a property name in + # QPropertyAnimation. PyQt stopped automatically encoding a str when a + # QByteArray was expected in v5.5 (see qbytearray.sip). if not isinstance(prop, bytes): prop = prop.encode('latin-1') anim = QtCore.QPropertyAnimation(self, prop)