Encode QPropertyAnimation property name if not passed as bytes.
This commit is contained in:
parent
63d12c1caa
commit
9b450b297f
@ -91,6 +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
|
||||
if not isinstance(prop, bytes):
|
||||
prop = prop.encode('latin-1')
|
||||
anim = QtCore.QPropertyAnimation(self, prop)
|
||||
anim.setDuration(duration)
|
||||
anim.setStartValue(start)
|
||||
|
Loading…
Reference in New Issue
Block a user